Add message length to debug output

This commit is contained in:
davidnewhall2 2019-09-03 01:09:25 -07:00
parent e5d9ebd82d
commit ddc809cd06
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}