Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to disable logging #86

Open
stack72 opened this issue Aug 12, 2021 · 1 comment
Open

Ability to disable logging #86

stack72 opened this issue Aug 12, 2021 · 1 comment

Comments

@stack72
Copy link

stack72 commented Aug 12, 2021

Hi,

right now, due to:

func printInfoLog(client *OpsGenieClient) {Eren Kızılay, 3 years ago: • design change
	client.Config.Logger.Infof("Client is configured with ApiUrl: %s, LogLevel: %s, RetryMaxCount: %v",
		client.Config.OpsGenieAPIURL,
		client.Config.Logger.GetLevel().String(),
		client.RetryableClient.RetryMax)
}

any client connection gets logged - this can be very verbose in downstream user logs]

this is what we see in all pulumi runs

Previewing update (test):
     Type                 Name       Plan     Info
     pulumi:pulumi:Stack  test                1 message

Diagnostics:
  pulumi:pulumi:Stack (test):
    INFO[2021-07-13T16:52:34.811336306+01:00] Client is configured with ApiUrl: api.opsgenie.com, LogLevel: info, RetryMaxCount: 10

Paul

@DiogoMCampos
Copy link

DiogoMCampos commented Feb 15, 2023

Just raising this again, it would be great to have a way to disable logging.

As a user of the SDK, I don't expect it to log anything at all, just return the response and/or errors and leave it up to me to decide what to do with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants