Adjust websocket tracker logging levels
This commit is contained in:
parent
15fff58d7b
commit
188aa800b2
|
@ -91,7 +91,11 @@ func (tc *TrackerClient) Run() error {
|
||||||
for !tc.closed {
|
for !tc.closed {
|
||||||
tc.mu.Unlock()
|
tc.mu.Unlock()
|
||||||
err := tc.doWebsocket()
|
err := tc.doWebsocket()
|
||||||
tc.Logger.WithDefaultLevel(log.Warning).Printf("websocket instance ended: %v", err)
|
level := log.Info
|
||||||
|
if tc.closed {
|
||||||
|
level = log.Debug
|
||||||
|
}
|
||||||
|
tc.Logger.WithDefaultLevel(level).Printf("websocket instance ended: %v", err)
|
||||||
time.Sleep(time.Minute)
|
time.Sleep(time.Minute)
|
||||||
tc.mu.Lock()
|
tc.mu.Lock()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue