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

error msgs in console #91

Open
shacharovercast opened this issue Mar 28, 2024 · 1 comment
Open

error msgs in console #91

shacharovercast opened this issue Mar 28, 2024 · 1 comment
Assignees

Comments

@shacharovercast
Copy link

Hi, I'm encountering an issue with this project. I'm using it in a python cli I wrote.
if I run through a proxy and there is an issue (sslError, ProxyError) than the defuat is to backup to file and that's alright.
my problem is that the error msg is printed in the console and I don't want that.
even if I catch some of those errors, the main problem I'm encountering is the code that runs when main is done. my users get these msgs in their console:

Got exception while sending logs to Logz.io, Try (1/4). Message: HTTPSConnectionPool(host='listener.logz.io', port=8071): Max retries exceeded with url: /?token=*** (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1007)'))) [...] Could not send logs to Logz.io after 4 tries, backing up to local file system Backing up your logs to logzio-failures-28032024-150037.txt

how can I avoide that? I see options in the streamhandler but I can't access and modify tham from my side, can you help?

@ralongit
Copy link
Contributor

@shacharovercast Apologies for the delay in our response.
Did you manage to handle the issue?

If not, can you please share the relevant code sample and your configuration?
As well as details on the environment so we can try to reproduce.
Thanks in advance.

@ralongit ralongit self-assigned this May 26, 2024
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