opsgenie / opsgenie-lamp

OpsGenie Lamp with Go SDK
Apache License 2.0
34 stars 18 forks source link

Api URL from configuration file is ignored #52

Open ievgenii-shepeliuk opened 1 year ago

ievgenii-shepeliuk commented 1 year ago

Hello

I'm using the latest version that is named as 3.1.4, but opsgenie-lamp --version gives me 3.2.0.

I've created configuration file at ~/.config/lamp.conf with following content

apiKey=<MY API KEY>
opsgenie.api.url=https://api.eu.opsgenie.com

But, this URL is ignored, the logs of a tool are giving me:

INFO[2023-02-06T18:51:56.930487813+02:00] Client is configured with ApiUrl: api.opsgenie.com, LogLevel: info, RetryMaxCount: 4

Also, I've tried to pass completely incorrect URL - the result is the same, this setting is not picked up by the tool.

apiKey=<MY API KEY>
opsgenie.api.url=https://qwe.asd
prakhar-mudaiya commented 1 year ago

Hi @ievgenii-shepeliuk,

This issue looks like a logging issue/bug. The call is going to the URL mentioned in the config file.

We will create a bug and work on rectifying the logging bug.