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

Send log messages to the database #932

Merged
merged 39 commits into from
Sep 21, 2022
Merged

Send log messages to the database #932

merged 39 commits into from
Sep 21, 2022

Conversation

Christian-B
Copy link
Member

@Christian-B Christian-B commented Mar 22, 2022

send all log messages to the provenance databse.

Must be done at the same time as:
SpiNNakerManchester/SpiNNUtils#174

This includes safety code if the database is locked.

Tested by SpiNNakerManchester/IntegrationTests#137

@Christian-B Christian-B added the enhancement This adds a new feature label Mar 22, 2022
@dkfellows
Copy link
Member

Is what is being logged controlled by the general logging level? I ask because logging stuff at DEBUG level is likely to produce a lot of write activity (and may have quite a profound effect on performance).

@Christian-B
Copy link
Member Author

Is what is being logged controlled by the general logging level? I ask because logging stuff at DEBUG level is likely to produce a lot of write activity (and may have quite a profound effect on performance).

Currently yes it does . because I had not considered that.

An issue is that in FormatAdapter.log has self.isEnabledFor(level) even for level 10 (debug)

@Christian-B
Copy link
Member Author

If SpiNNakerManchester/SpiNNUtils#177 is approved it will be easy to only write to database if the message is of interest.

@rowleya rowleya merged commit f79ec54 into master Sep 21, 2022
@rowleya rowleya deleted the log_to_db branch September 21, 2022 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This adds a new feature in progress Work in progress; known not ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants