From 68f5b617b2b4ccad0d251fc3982ee7df1c0fa6c0 Mon Sep 17 00:00:00 2001 From: Sagleft Date: Tue, 1 Nov 2022 15:21:34 +0200 Subject: [PATCH] log only errors --- log.go | 4 ++-- request.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/log.go b/log.go index 853756f..e7efe3c 100644 --- a/log.go +++ b/log.go @@ -30,10 +30,10 @@ func (l *logData) useError(err error) error { return err } -func (l *logData) useResponse(response []byte) { +/*func (l *logData) useResponse(response []byte) { l.Response = response l.setElapsedTime() -} +}*/ func (l *logData) getMessage() string { status := "success" diff --git a/request.go b/request.go index bf4c8b1..b64c2e6 100644 --- a/request.go +++ b/request.go @@ -82,7 +82,7 @@ func (c *UtopiaClient) apiQuery2JSON( return nil, l.useError(fmt.Errorf("failed to read response body: %w", err)) } - l.useResponse(body) + //l.useResponse(body) return body, nil }