diff --git a/lib/jsonclient/jsonclient.go b/lib/jsonclient/jsonclient.go index 1bc8613..d63186c 100644 --- a/lib/jsonclient/jsonclient.go +++ b/lib/jsonclient/jsonclient.go @@ -16,8 +16,6 @@ import ( "github.com/wearemojo/mojo-public-go/lib/cher" "github.com/wearemojo/mojo-public-go/lib/gerrors" - "github.com/wearemojo/mojo-public-go/lib/merr" - "github.com/wearemojo/mojo-public-go/lib/mlog" "github.com/wearemojo/mojo-public-go/lib/version" ) @@ -71,15 +69,6 @@ func (c *Client) Do(ctx context.Context, method, path string, params url.Values, // DoWithHeaders executes an HTTP request against the configured server with custom headers. func (c *Client) DoWithHeaders(ctx context.Context, method, path string, headers http.Header, params url.Values, src, dst any, requestModifiers ...func(r *http.Request)) error { - // semi-temp logging for discourse request volumes. Consider improving or removing if found. - if c.Host == "community.mojo.so" || c.Host == "discourse.mojo-nonprod.dev" { - mlog.Info(ctx, merr.New(ctx, "discourse_api_log", merr.M{ - "method": method, - "path": path, - "params": params, - })) - } - fullPath := pathlib.Join("/", c.Prefix, path) req := &http.Request{ Method: method,