fix log output
This commit is contained in:
parent
ec1c4a7479
commit
60a7be9351
|
|
@ -156,7 +156,7 @@ func (u *Unifi) GetData(apiPath string, v interface{}, params ...string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
u.DebugLog("Requested %s: elapsed %v, returned %d bytes",
|
u.DebugLog("Requested %s: elapsed %v, returned %d bytes",
|
||||||
apiPath, time.Since(start).Round(time.Millisecond), len(body))
|
u.path(apiPath), time.Since(start).Round(time.Millisecond), len(body))
|
||||||
|
|
||||||
return json.Unmarshal(body, v)
|
return json.Unmarshal(body, v)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue