mirror of
https://gitlab.com/depesz/explain.depesz.com.git
synced 2024-11-24 08:42:27 +02:00
Add logging of bad plans
Sometimes people complain about unparse-able plans. Let's see them.
This commit is contained in:
parent
e00909949f
commit
463bad4f9d
1
cpanfile
1
cpanfile
@ -21,6 +21,5 @@ requires 'Mojolicious';
|
||||
requires 'Pg::Explain', '>= 2.4';
|
||||
requires 'Number::Bytes::Human';
|
||||
requires 'Pg::SQL::PrettyPrinter';
|
||||
requires 'MojoX::Log::Rotate'
|
||||
|
||||
# vim: set ft=perl:
|
||||
|
@ -249,7 +249,8 @@ sub index {
|
||||
if ( $EVAL_ERROR ) {
|
||||
|
||||
# log message
|
||||
$self->app->log->info( $EVAL_ERROR );
|
||||
$self->app->log->error( $EVAL_ERROR );
|
||||
$self->app->log->error( "Given plan: " . $plan );
|
||||
|
||||
# leave...
|
||||
return $self->render( 'message' => q|Failed to parse your plan:|, 'details' => $EVAL_ERROR );
|
||||
|
Loading…
Reference in New Issue
Block a user