Wrong logging configuration in JobSearch, JobStream and Historical
The logging configuration has been wrong since 2022-03-21, when the folder 'sokannonser' changed name to 'search'. Any logging under the 'search'-folder (all implementation for JobSearch) has not been written to log for almost 2 years.
Problem: https://gitlab.com/arbetsformedlingen/job-ads/jobsearch-apis/-/blob/main/jobsearch.py?ref_type=heads#L19 ...where 'sokannonser' should be changed to 'search' to make logs visible again.
https://gitlab.com/arbetsformedlingen/job-ads/jobsearch-apis/-/blob/main/historical.py?ref_type=heads#L16 ...where 'sokannonser' should be changed to 'search' to make logs visible again.
https://gitlab.com/arbetsformedlingen/job-ads/jobsearch-apis/-/blob/main/jobstream.py?ref_type=heads#L15 ...where 'sokannonser' probably should be change to 'stream' to make logs visible again.
Without the info-logging it's quite impossible to troubleshoot in test and production.
Some things to consider when configuring the logs properly:
- Could the new log rows lead to disk space problems?
- Is the log debug level correct? If it's configured as DEBUG instead of INFO we will probably have problems with performance and disk
- Are the info-logs that hasn't been seen for long too extensive? That we need to change some of them to log.debug?
Also see:
arbetsformedlingen/libraries/jobtech-common#8
arbetsformedlingen/libraries/jobtech-common#9