From 486122f3d8941aa50cc06124016ff484c53ba73c Mon Sep 17 00:00:00 2001 From: yusing Date: Fri, 29 Mar 2024 21:45:29 +0000 Subject: [PATCH] no timestamp, color and sorting in systemd mode --- src/go-proxy/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/go-proxy/main.go b/src/go-proxy/main.go index 152d108..d4eb58d 100755 --- a/src/go-proxy/main.go +++ b/src/go-proxy/main.go @@ -20,11 +20,16 @@ func main() { args := getArgs() if isRunningAsService { - logrus.SetFormatter(&logrus.JSONFormatter{}) + logrus.SetFormatter(&logrus.TextFormatter{ + DisableColors: true, + DisableTimestamp: true, + DisableSorting: true, + }) } else { logrus.SetFormatter(&logrus.TextFormatter{ ForceColors: true, DisableColors: false, + DisableSorting: true, FullTimestamp: true, TimestampFormat: "01-02 15:04:05", })