From cf3cb2a5f437d8afa9f41ddf251b97fdb90c5366 Mon Sep 17 00:00:00 2001 From: "mojo-machine[bot]" <111131124+mojo-machine[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:02:09 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Sync=20from=20monorepo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/wearemojo/mojo/commit/0cdb9f63c232f6efd44bdb2638cc1d15804318f8 --- lib/jsonclient/jsonclient.go | 11 ----------- 1 file changed, 11 deletions(-) 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,