Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Print time/date stamp whenever an exception is printed. #2832

Open
virtadpt opened this issue Jul 6, 2020 · 1 comment
Open

Comments

@virtadpt
Copy link
Collaborator

virtadpt commented Jul 6, 2020

Last night when my provider was doing maintenance, the database connection to two of my delayed_job runners was lost, causing them to lock up and throw "Agent#4254: Error when fetching url: Mysql2::Error::TimeoutError: Lock wait timeout exceeded; try restarting transaction" exceptions. The thing is, I don't know exactly when that happened (and I suspect other folks might run into this as well). Would it be possible to print the system's time and date right before the exceptions get dumped?

@dsander
Copy link
Collaborator

dsander commented Jul 12, 2020

Hmm not sure, I am pretty sure the background processors just log to STDOUT, when using docker the timestamp would be added by docker itself. On "manual installations" there might be an option to add the timestamp in runit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants