Python Forum
Logging fails intermittently
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Logging fails intermittently
#1
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
Reply
#2
Does the script (service) stop logging always at the same time?
Could you provide some part of the script?
What linux are you using?
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020