-
Notifications
You must be signed in to change notification settings - Fork 41
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
logfile conflict - no harvest.log #26
Comments
OK: that explains why the last config (harvest) doesn't override the first (registry). |
I'm not sure what was intended with that code: I assume that oai-reg actions should go to registry.log, and oat-harvest actions to harvest.log. I've tried the following, along with similar changes to registry.py, and I think that works to send the registry or harvester specific messages to the appropriate named logger, while everything goes to stderr root logger. ( But perhaps some of that setting should be done in each main() function. )
I'm trying to get this working properly, as:
Currently, I'm using the following in harvest.py, but I should probably create a child logger as oaiharvest.harvest.XMLParser to tag those log entries differently.
I would be happy to submit a push if you think I'm on the right track with that solution. |
There seems to be a conflict between logging config at https://github.com/bloomonkey/oai-harvest/blob/develop/oaiharvest/harvest.py#L500-L505 and https://github.com/bloomonkey/oai-harvest/blob/develop/oaiharvest/registry.py#L340-L346 .
Harvest logs are always written to registry.log. There is no harvest.log.
Not much of an issue, but caused a little confusion when looking for logs.
( I am going to run harvest from a cron job, so I'm going to want to redirect both the logs and the registry into another directory anyway. )
The text was updated successfully, but these errors were encountered: