ezeql/koding-challange

View on GitHub
common/logger.go

Summary

Maintainability
A
0 mins
Test Coverage
package common

import (
    "log"
)

//DebugLevel set to true will output extra information out workers flow.
var DebugLevel bool

func Info(args ...interface{}) {
    if DebugLevel {
        Log(args...)
    }
}

func Log(args ...interface{}) {
    log.Println(args...)
}