Skip to content

Commit

Permalink
Print errorInfo with a var_export
Browse files Browse the repository at this point in the history
  • Loading branch information
p0lemic authored Sep 22, 2020
2 parents cf33a3d + 650627a commit 0c73078
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Sifo/Debug/DataBaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use DateTime;
use PDO;
use PDOException;
use function var_export;

class DebugDataBaseHandler
{
Expand Down Expand Up @@ -110,7 +111,7 @@ public function saveExecutionDebug( $execution_key, $url, $debug_content, $is_js
{
trigger_error( "[sifo] [debug] Could not insert the execution debug record in the Sifo debug database.\n
Error message: " . $e->getMessage() . "\n
Error info: " . $this->persistence->errorInfo() );
Error info: " . var_export($this->persistence->errorInfo()) );
}
}

Expand Down Expand Up @@ -296,4 +297,4 @@ public function pinExecution( $execution_key, $is_pinned )
return false;
}
}
}
}

0 comments on commit 0c73078

Please sign in to comment.