fix: config: remove datetime for point service

This commit is contained in:
Daniel Ding
2022-09-24 18:55:10 +08:00
parent b5af44e0a5
commit 6aa8dbd0d8

View File

@@ -3,6 +3,7 @@ package config
import ( import (
"flag" "flag"
"github.com/luscis/openlan/pkg/libol" "github.com/luscis/openlan/pkg/libol"
"log"
"runtime" "runtime"
"strings" "strings"
) )
@@ -77,6 +78,9 @@ func NewPoint() *Point {
} }
p.Flags() p.Flags()
p.Parse() p.Parse()
if p.Terminal == "off" {
log.SetFlags(0)
}
p.Initialize() p.Initialize()
return p return p
} }