Permalink
Browse files

Include user_agent in error output

  • Loading branch information...
1 parent 7bd5d3c commit 88b46bf597e86d6a2e26b0a9280e06f7f4fb1452 @autarch autarch committed Mar 3, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/VegGuide/Plugin/ErrorHandling.pm
@@ -87,6 +87,8 @@ sub _log_error {
$error{referer} = $ref;
}
+ $error{user_agent} = $self->request()->user_agent();
+
$error{error} = $error . '';
$self->log()->error( VegGuide::JSON->Encode( \%error ) );

0 comments on commit 88b46bf

Please sign in to comment.