mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 16:57:51 +08:00
Merge branch 'feature_0.7.1_refactor' of https://github.com/gravitl/netmaker into feature_0.7.1_refactor
This commit is contained in:
BIN
netclient/functions/.logging.go.swp
Normal file
BIN
netclient/functions/.logging.go.swp
Normal file
Binary file not shown.
12
netclient/functions/logging.go
Normal file
12
netclient/functions/logging.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package functions
|
||||
|
||||
import (
|
||||
"log"
|
||||
)
|
||||
|
||||
func PrintLog(message string, loglevel int) {
|
||||
log.SetFlags(log.Flags() &^ (log.Llongfile | log.Lshortfile))
|
||||
if loglevel == 0 {
|
||||
log.Println(message)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user