From ddc809cd06aea0c7cecbf9d81e634b591b6e65b0 Mon Sep 17 00:00:00 2001 From: davidnewhall2 Date: Tue, 3 Sep 2019 01:09:25 -0700 Subject: [PATCH] Add message length to debug output --- core/unifi/unifi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/unifi/unifi.go b/core/unifi/unifi.go index 37ae69c3..5ee19543 100644 --- a/core/unifi/unifi.go +++ b/core/unifi/unifi.go @@ -85,7 +85,7 @@ func (u *Unifi) GetData(methodPath string, v interface{}) error { if err != nil { return err } - u.DebugLog("Unmarshaling %s", methodPath) + u.DebugLog("Unmarshaling %s (bytes: %d)", methodPath, len(body)) return json.Unmarshal(body, v) }