-
Notifications
You must be signed in to change notification settings - Fork 1
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
set default logger for import scripts to file handler #282
Comments
@sennierer please have a look at this. i will have to run new imports soon. |
Sorry for the late reply. So this should have worked already, but needed a env variable to work. I hard coded logging from scripts in the script folder to the imports file now. Everything is always logged to the same file. Given that we run the imports manually I think this should be fine (rest of the logs still goes to stout). |
for clarification: for the zotero import e.g.: for the excel import e.g.: unfortunately we still have to deal with excel imports in the future. maybe we want to consider separating the logs. |
https://github.com/acdh-oeaw/apis-instance-frischmuth/blob/deploy/apis_ontology/settings.py#L117
default logger for import results should be file based. at the moment it defaults to console. but we want to hand the log files over to the lit team.
maybe its also necessary to add a cron job to remove old log files.
The text was updated successfully, but these errors were encountered: