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 just spend a good chunk of time trying to figure out what was wrong in one of my deployed revel apps. I discovered that if your controller does return c.RenderError(err) it doesn't get logged.
The default 500.html contains 'This exception has been logged' - so i found this surprising that errors aren't logged by default.
Would you please consider adding a call to eg c.Log.Error(err.Error()) to the top of RenderError? I believe it'd follow the 'principle of least surprise' to do so :)
Have a great week all.
The text was updated successfully, but these errors were encountered:
Hi all, first up: Revel is great!
I just spend a good chunk of time trying to figure out what was wrong in one of my deployed revel apps. I discovered that if your controller does
return c.RenderError(err)
it doesn't get logged.The default 500.html contains 'This exception has been logged' - so i found this surprising that errors aren't logged by default.
Would you please consider adding a call to eg
c.Log.Error(err.Error())
to the top of RenderError? I believe it'd follow the 'principle of least surprise' to do so :)Have a great week all.
The text was updated successfully, but these errors were encountered: