mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 00:21:30 +00:00
platform: Fix output format
This commit is contained in:
parent
e929dde13e
commit
bb651db2d2
|
@ -78,7 +78,7 @@ func (f Formatter) Format(ctx context.Context, level Level, tag string, message
|
||||||
message = levelString + "[" + xd(int(timestamp.Sub(f.BaseTime)/time.Second), 4) + "] " + message
|
message = levelString + "[" + xd(int(timestamp.Sub(f.BaseTime)/time.Second), 4) + "] " + message
|
||||||
}
|
}
|
||||||
if f.DisableLineBreak {
|
if f.DisableLineBreak {
|
||||||
if message[len(message)-1] != '\n' {
|
if message[len(message)-1] == '\n' {
|
||||||
message = message[:len(message)-1]
|
message = message[:len(message)-1]
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue