Python Forum

Full Version: Logging fails intermittently
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

In my python script have redirected logs to a file by importing "logging" module.
And the script is running as a service in Linux environment by creating a service file /etc/systemd/system

Generally the script is working fine, but intermittently logs are not redirected properly and a service restart requires to fix this issue.

Could you please help me some way to spot the issue or is there any way to trace the logs based on service?
Or is there any other alternate suggestion to achieve this?

Thanks & Regards,
Nachu
Does the script (service) stop logging always at the same time?
Could you provide some part of the script?
What linux are you using?