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

ability to setup and configure RotatingFileHandler for file logging #50

Closed
wants to merge 8 commits into from

Conversation

trbs
Copy link
Contributor

@trbs trbs commented Dec 8, 2017

Add the ability to setup and configure rotating log files via RotatingFileHandler.

If wanted this patch could be extended for supporting other file handlers as well.
Or possibly disabling file handlers and only logging to console (which might be good for some container setups)

trbs added 8 commits December 9, 2017 00:01
* 'master' of https://github.com/grimoirelab/mordred: (60 commits)
  [release] Update version number to 0.1.12
  [panels] Use the new kidash module, instead of grimoire-kidash
  [task_collection][arthur] Limit the total number of items collected from redis
  [task_collection][arthur] Set to 200MB the max memory for the arthur python dict
  [arthur] Limit the max size of the python memory with raw items from redis
  [tasks_panels] Add support for data sources when uploading panels.
  [docker] Use the new grimoirelab github repository location to download the releases
  [release] Update version number to 0.1.11
  Fix grimoire_elk symbolic link changed by error
  [task_collection] Configure bulk and scroll size in arthur collection
  [tests] Fix tests to work with the new projects loading logic
  [tasks_project] Load projects in the initial tasks in mordred
  [task_collection] Create task in arthur only the first time
  [task_enrich] Minor fix in logs
  [task_identities] Add support for '--no-email-validation' option in grimoirelab2sh
  [release] Update version number to 0.1.10
  [mordred] Use arthur upstream and not acs fork
  [task_collection][arthur] Compute the memory usage in intervals
  [docker] arthur is not used with Elasticsearch anymore
  [task_identities] Refactor code to address review comments by @albertinisg
  ...
…o False even though there might be an exception
@acs
Copy link
Member

acs commented Jan 13, 2018

@trbs I am going to review all this work asap. I am a bit overloaded past weeks. Thank you very much for your work. I promise I will invest time in reviewing it! Logs rotating is a critical feature for us in production, and any improvement will help!

@trbs
Copy link
Contributor Author

trbs commented Jan 13, 2018

@acs great. Right now the PR is polluted with other fixes like the last commit resetting IDENTITIES_TASKS_ON when an error happens in sortinghat. For me that was mysql network error, which causes Mordred to "deadlock". (although i'm not sure if the driver recovers from it since I never use MySQL)

Anyways please see which changes you want to merge and I can create new clean PR's for them.

@acs
Copy link
Member

acs commented Jan 16, 2018

@trbs it is better to go step by step in the PRs. Each feature in a specific PR which can be merged without issues with master.

Could you clean the PR so it merges with merges and it is only related to a specific feature? For example, the rotating of logs. The other features must be in new PRs.

Thanks @trbs !

@trbs
Copy link
Contributor Author

trbs commented Jan 16, 2018

@acs opened #64 and #65 which should be clean patches on top of Mordred master.

@trbs trbs closed this Jan 16, 2018
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

Successfully merging this pull request may close these issues.

2 participants