mirror of
https://github.com/nikdoof/hapz2m.git
synced 2026-01-30 04:38:20 +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 {
|
if br.DebugMode {
|
||||||
haplog.Debug.Enable()
|
haplog.Debug.Enable()
|
||||||
|
|
||||||
// add microseconds to log output
|
if BRIDGE_DEVMODE {
|
||||||
log.SetFlags(log.LstdFlags | log.Lmicroseconds)
|
// add microseconds to log output
|
||||||
|
log.SetFlags(log.LstdFlags | log.Lmicroseconds)
|
||||||
|
log.Println("Dev mode enabled")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
err = br.server.ListenAndServe(br.ctx)
|
err = br.server.ListenAndServe(br.ctx)
|
||||||
|
|||||||
Reference in New Issue
Block a user