mirror of
https://github.com/nikdoof/hapz2m.git
synced 2026-01-29 22:38:23 +00:00
Log microseconds only on dev builds
This commit is contained in:
@@ -199,8 +199,11 @@ func (br *Bridge) StartHAP() error {
|
||||
if br.DebugMode {
|
||||
haplog.Debug.Enable()
|
||||
|
||||
// add microseconds to log output
|
||||
log.SetFlags(log.LstdFlags | log.Lmicroseconds)
|
||||
if BRIDGE_DEVMODE {
|
||||
// add microseconds to log output
|
||||
log.SetFlags(log.LstdFlags | log.Lmicroseconds)
|
||||
log.Println("Dev mode enabled")
|
||||
}
|
||||
}
|
||||
|
||||
err = br.server.ListenAndServe(br.ctx)
|
||||
|
||||
Reference in New Issue
Block a user