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
{{ message }}
Repository navigation
[Enhancement] Log the SQL command being run when an error occurs #66
I understand that if a sql command fails that the command that caused the failure is logged in: RoundhousE.ScriptsRunErrors, however; it would also be nice to have the sql_statement that caused the failure to be written out to the log file so that it is immediately obvious what caused the failure when the user sends the log files from the installation.
I would propose this simple change in DefaultDatabaseMigrator.run_sql:
try{database.run_sql(sql_statement,connection_type);}catch(Exceptionex){Log.bound_to(this).log_an_error_event_containing("Error executing command {0} - {1}",script_name,sql_statement);// please add this linedatabase.rollback();
Activity
ferventcoder commentedon Sep 7, 2012
Fixed in 3902f16
Log statement being run when an error occurs - chucknorris/roundhouse#66
Log statement being run when an error occurs - chucknorris#66