mirror of
https://github.com/vale981/agent
synced 2025-03-05 17:41:40 -05:00
20 lines
227 B
Go
20 lines
227 B
Go
package logutil
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
)
|
|
|
|
var IsDev = false
|
|
|
|
func init() {
|
|
IsDev = os.Getenv("INDIHUB_DEV") != ""
|
|
}
|
|
|
|
func LogError(format string, args ...interface{}) {
|
|
if !IsDev {
|
|
return
|
|
}
|
|
|
|
log.Printf(format, args...)
|
|
}
|