mirror of https://github.com/cbeuw/Cloak
Log timestamp
This commit is contained in:
parent
d1b05ee9e5
commit
57bb437802
|
|
@ -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…
Reference in New Issue