Currently the loop isn't throttled which creates busy-wait and maxes out
one of the CPU cores to 100%. This is because Pygtail exits its own loop
every time it reaches the end of the debug.log file.
This also makes WARNING logs about non-existing debug.log file during
log rotation statistically improbable.
Currently the loop isn't throttled which creates busy-wait and maxes out one of the CPU cores to 100%. This is because Pygtail exits its own loop every time it reaches the end of the debug.log file.
This also makes WARNING logs about non-existing debug.log file during log rotation statistically improbable.