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

Improve logging #168

Open
wschoenell opened this issue Jun 9, 2017 · 1 comment
Open

Improve logging #168

wschoenell opened this issue Jun 9, 2017 · 1 comment

Comments

@wschoenell
Copy link
Contributor

I am having this error when running Chimera on Windows, but it is probably an error for the other OSes. In doRollover() it sometimes complains that the file is already open by another process. This is probably due to multiple concurrent threads running in the same log file.

screen shot 2017-06-06 at 1 14 21 pm

@wschoenell wschoenell changed the title Improve logging in Windows Improve logging Jun 9, 2017
@wschoenell
Copy link
Contributor Author

wschoenell commented Jun 9, 2017

A solution may include changing Python's default RotatingFileHandler for the ConcurrentLogHandler alternative module.

fileHandler = logging.handlers.RotatingFileHandler(SYSTEM_CONFIG_LOG_NAME,
maxBytes=5 *
1024 * 1024,
backupCount=10)

Some source of info:
evilhero/mylar#893
https://stackoverflow.com/questions/37402702/log-rotation-python-and-windows

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

1 participant