-
Notifications
You must be signed in to change notification settings - Fork 49
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
Double output with coloredlogs and logging #5
Comments
Hello Jānis,
Thanks for bringing this to my attention,
I will fix it when i find some time.
In case you have already found a fix for this, i would highly appreciate it
if you can create a pull request for it.
Thanks again.
Regards,
Sankalp
…On Tue, Apr 16, 2019, 15:38 Jānis Judvaitis ***@***.***> wrote:
Your code causes double output when used in project where I define my own
loggers with logging.DEBUG level.
#!/usr/bin/env python3
import logging
import coloredlogs
from datetime import timedelta
from timeloop import Timeloop
logging.basicConfig(level=logging.DEBUG)
coloredlogs.install(level=logging.DEBUG)
logger = logging.getLogger(__name__)
looper = Timeloop()
@looper.job(interval=timedelta(seconds=5))
def work():
pass
looper.start(block=True)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQDeazB_9VUFRozSnnu4hij9mer5ELB9ks5vhaEZgaJpZM4cx2x_>
.
|
Having this same issue, has this been resolved? |
I solved it this way
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your code causes double output when used in project where I define my own loggers with logging.DEBUG level.
The text was updated successfully, but these errors were encountered: