diff --git a/pkg/config/point.go b/pkg/config/point.go index 801a612..85daa0c 100755 --- a/pkg/config/point.go +++ b/pkg/config/point.go @@ -3,6 +3,7 @@ package config import ( "flag" "github.com/luscis/openlan/pkg/libol" + "log" "runtime" "strings" ) @@ -77,6 +78,9 @@ func NewPoint() *Point { } p.Flags() p.Parse() + if p.Terminal == "off" { + log.SetFlags(0) + } p.Initialize() return p }