You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using lumberjack as a resque logger with daily log rotation. When the log file needs to be rotated, the workers tend to hang indefinitely. Checking the process with strace reveals the worker is waiting for an exclusive lock on the logfile.
My current suspicion is that in lib/lumberjack/device/rolling_log_file.rb:106 stream.flock( LOCK::UN ) should be file.flock( LOCK_UN ) ?
As a workaround I'll add LOCK_NB to the LOCK_EX and return early if the lock could not be achieved for the time being.
The text was updated successfully, but these errors were encountered:
I'm currently using lumberjack as a resque logger with daily log rotation. When the log file needs to be rotated, the workers tend to hang indefinitely. Checking the process with strace reveals the worker is waiting for an exclusive lock on the logfile.
My current suspicion is that in lib/lumberjack/device/rolling_log_file.rb:106 stream.flock( LOCK::UN ) should be file.flock( LOCK_UN ) ?
As a workaround I'll add LOCK_NB to the LOCK_EX and return early if the lock could not be achieved for the time being.
The text was updated successfully, but these errors were encountered: