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

duplicated log messages #31

Closed
samlesu opened this issue Jan 12, 2017 · 2 comments
Closed

duplicated log messages #31

samlesu opened this issue Jan 12, 2017 · 2 comments

Comments

@samlesu
Copy link

samlesu commented Jan 12, 2017

We updated Thespian from 3.4.0 to 3.6.0 and we notice that all the logs emitted by an Actor are duplicated using the Python default formatting (and not the logs emitted by the main thread).

So the output looks like this for instance:

2017-01-12 11:42:35,787 - sandman.actors.actor:41[29] - INFO - Creating actor Client
INFO:sandman.actors.actor:Creating actor Client

We are using the multiprocTCPBase system base. I'm manually configuring my local loggers and setting up the thespian loggers using the configuration provided in the documentation.

Are we doing something wrong?

@kwquick
Copy link
Contributor

kwquick commented Jan 12, 2017

Do you have propagate = True and multiple loggers potentially handling the message? If you could share your logging configuration I could see if this is something I could reproduce.

@samlesu
Copy link
Author

samlesu commented Jan 13, 2017

Thanks for your quick reply, adding propagate = True on my package logger solve it.

@samlesu samlesu closed this as completed Jan 13, 2017
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