全面替换log为zap
This commit is contained in:
@@ -3,7 +3,7 @@ package routes
|
||||
import (
|
||||
"game-driver/internal/common"
|
||||
"game-driver/leaf"
|
||||
"log"
|
||||
"game-driver/pkg/logger"
|
||||
)
|
||||
|
||||
func Command(d *common.Device) leaf.HandlerFunc {
|
||||
@@ -17,7 +17,7 @@ func Command(d *common.Device) leaf.HandlerFunc {
|
||||
case "status":
|
||||
d.PublishStatus()
|
||||
default:
|
||||
log.Printf("接收到无效指令: %s\n", cmd)
|
||||
logger.Infof("接收到无效指令: %s\n", cmd)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user