mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-25 01:51:29 +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
|
||||
}
|
||||
if f.DisableLineBreak {
|
||||
if message[len(message)-1] != '\n' {
|
||||
if message[len(message)-1] == '\n' {
|
||||
message = message[:len(message)-1]
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue