Log timestamp

pull/158/head
Andy Wang 4 years ago
parent d1b05ee9e5
commit 57bb437802
No known key found for this signature in database
GPG Key ID: 181B49F9F38F3374

@ -73,6 +73,9 @@ func main() {
log.Info("Starting standalone mode")
}
log.SetFormatter(&log.TextFormatter{
FullTimestamp: true,
})
lvl, err := log.ParseLevel(*verbosity)
if err != nil {
log.Fatal(err)

@ -72,6 +72,10 @@ func main() {
var pluginMode bool
log.SetFormatter(&log.TextFormatter{
FullTimestamp: true,
})
if os.Getenv("SS_LOCAL_HOST") != "" && os.Getenv("SS_LOCAL_PORT") != "" {
pluginMode = true
config = os.Getenv("SS_PLUGIN_OPTIONS")

Loading…
Cancel
Save