This commit is contained in:
Milan Nikolic 2017-02-01 01:50:51 +01:00
parent 0682698f0b
commit 969ba1dc21
8 changed files with 125 additions and 81 deletions

View file

@ -17,6 +17,7 @@ const (
var traceDebugMsgs = false
// Trace log
func TraceLog(msgType int, text string, v ...interface{}) {
switch msgType {
case LogInfo:
@ -33,6 +34,7 @@ func TraceLog(msgType int, text string, v ...interface{}) {
}
}
// Set debug messages
func SetDebug(enabled bool) {
traceDebugMsgs = enabled
}