mirror of
https://github.com/luscis/openlan.git
synced 2025-10-31 04:26:21 +08:00
fix: config: remove datetime for point service
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user