Permalink
Browse files

logging more

  • Loading branch information...
rizen committed Apr 18, 2010
1 parent df063e6 commit 84189dbdf57c12779abb0e9339c001f6bc9bd486
Showing with 6 additions and 1 deletion.
  1. +2 −1 Changes
  2. +4 −0 lib/JSON/RPC/Dispatcher.pm
View
@@ -1,5 +1,6 @@
-0.0402 2010-03-08
+0.0402 2010-04-18
- Fixed an uninitialized warning.
+ - Some types of fatal errors weren't being logged.
- JSON RPC 2.0 has been ratified
0.0401 2010-03-04
@@ -150,6 +150,8 @@ sub acquire_procedures_from_post {
$self->error_code(-32700);
$self->error_message('Parse error.');
$self->error_data($body);
+ $log->fatal('Parse error.');
+ $log->debug($body);
return undef;
}
else {
@@ -167,6 +169,8 @@ sub acquire_procedures_from_post {
$self->error_code(-32600);
$self->error_message('Invalid request.');
$self->error_data($request);
+ $log->fatal('Invalid request.');
+ $log->debug($body);
return undef;
}
}

0 comments on commit 84189db

Please sign in to comment.