mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-08 03:00:27 +08:00
优化日志提示
This commit is contained in:
@@ -35,7 +35,7 @@ func init() {
|
|||||||
err := uploadLogs()
|
err := uploadLogs()
|
||||||
tr.End()
|
tr.End()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logs.Println("[LOG]" + err.Error())
|
logs.Println("[LOG]upload logs failed: " + err.Error())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -191,7 +191,7 @@ func ServerError(serverId int64, tag string, description string, logType nodecon
|
|||||||
if len(params) > 0 {
|
if len(params) > 0 {
|
||||||
p, err := json.Marshal(params)
|
p, err := json.Marshal(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logs.Println("[LOG]" + err.Error())
|
logs.Println("[LOG]ServerError(): json encode failed: " + err.Error())
|
||||||
} else {
|
} else {
|
||||||
paramsJSON = p
|
paramsJSON = p
|
||||||
}
|
}
|
||||||
@@ -223,7 +223,7 @@ func ServerSuccess(serverId int64, tag string, description string, logType nodec
|
|||||||
if len(params) > 0 {
|
if len(params) > 0 {
|
||||||
p, err := json.Marshal(params)
|
p, err := json.Marshal(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logs.Println("[LOG]" + err.Error())
|
logs.Println("[LOG]ServerSuccess(): json encode failed: " + err.Error())
|
||||||
} else {
|
} else {
|
||||||
paramsJSON = p
|
paramsJSON = p
|
||||||
}
|
}
|
||||||
@@ -255,7 +255,7 @@ func ServerLog(serverId int64, tag string, description string, logType nodeconfi
|
|||||||
if len(params) > 0 {
|
if len(params) > 0 {
|
||||||
p, err := json.Marshal(params)
|
p, err := json.Marshal(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logs.Println("[LOG]" + err.Error())
|
logs.Println("[LOG]ServerLog(): json encode failed: " + err.Error())
|
||||||
} else {
|
} else {
|
||||||
paramsJSON = p
|
paramsJSON = p
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user