From efc8187fa8c3cb9596ca2068bb4790f63c91f412 Mon Sep 17 00:00:00 2001 From: xjasonlyu Date: Wed, 28 Aug 2024 16:11:41 -0400 Subject: [PATCH] adjust log level --- engine/engine.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/engine.go b/engine/engine.go index 4fb41db4..f513fac3 100644 --- a/engine/engine.go +++ b/engine/engine.go @@ -156,7 +156,7 @@ func restAPI(k *Key) error { go func() { if err := restapi.Start(host, token); err != nil { - log.Warnf("[RESTAPI] failed to start: %v", err) + log.Errorf("[RESTAPI] failed to start: %v", err) } }() log.Infof("[RESTAPI] serve at: %s", u) @@ -175,7 +175,7 @@ func netstack(k *Key) (err error) { if k.TUNPreUp != "" { log.Infof("[TUN] pre-execute command: `%s`", k.TUNPreUp) if preUpErr := execCommand(k.TUNPreUp); preUpErr != nil { - log.Warnf("[TUN] failed to pre-execute: %s: %v", k.TUNPreUp, preUpErr) + log.Errorf("[TUN] failed to pre-execute: %s: %v", k.TUNPreUp, preUpErr) } } @@ -185,7 +185,7 @@ func netstack(k *Key) (err error) { } log.Infof("[TUN] post-execute command: `%s`", k.TUNPostUp) if postUpErr := execCommand(k.TUNPostUp); postUpErr != nil { - log.Warnf("[TUN] failed to post-execute: %s: %v", k.TUNPostUp, postUpErr) + log.Errorf("[TUN] failed to post-execute: %s: %v", k.TUNPostUp, postUpErr) } }()