Skip to content

Commit

Permalink
Fix error printing on DataBaseHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
p0lemic authored Oct 8, 2020
2 parents 0c73078 + 001042e commit 32e2ab0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Sifo/Debug/DataBaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private function createSifoDebugDbTable()
{
trigger_error( "[sifo] [debug] Could not create 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 @@ -138,7 +138,7 @@ public function cleanOldExecutionDebugs()
{
trigger_error( "[sifo] [debug] Could not delete the old execution debugs records from the Sifo debug database.\n
Error message: " . $e->getMessage() . "\n
Error info: " . print_r( $this->persistence->errorInfo() ,true ));
Error info: " . var_export( $this->persistence->errorInfo()));
}
}

Expand Down Expand Up @@ -187,7 +187,7 @@ public function getExecutionDebugWithChildrenById( $execution_key )
{
trigger_error( "[sifo] [debug] Could not get the execution debug content from the Sifo debug database for the execution ID: $execution_key.\n
Error message: " . $e->getMessage() . "\n
Error info: " . $this->persistence->errorInfo() );
Error info: " . var_export($this->persistence->errorInfo()) );

return false;
}
Expand Down Expand Up @@ -248,7 +248,7 @@ public function getLastParentExecutionKey( $is_json = null )
{
trigger_error( "[sifo] [debug] Could not get the last execution key from the Sifo debug database.\n
Error message: " . $e->getMessage() . "\n
Error info: " . $this->persistence->errorInfo() );
Error info: " . var_export($this->persistence->errorInfo()) );

return false;
}
Expand All @@ -270,7 +270,7 @@ public function linkChildExecutionToParent( $child_execution_key, $parent_execut
{
trigger_error( "[sifo] [debug] Could not link a child execution to its parent. child_execution_key: $child_execution_key, parent_execution_key: $parent_execution_key.\n
Error message: " . $e->getMessage() . "\n
Error info: " . $this->persistence->errorInfo() );
Error info: " . var_export($this->persistence->errorInfo()) );

return false;
}
Expand All @@ -292,7 +292,7 @@ public function pinExecution( $execution_key, $is_pinned )
{
trigger_error( "[sifo] [debug] Could not pin a execution. execution_key: $execution_key, is_pinned: $is_pinned.\n
Error message: " . $e->getMessage() . "\n
Error info: " . $this->persistence->errorInfo() );
Error info: " . var_export($this->persistence->errorInfo()) );

return false;
}
Expand Down

0 comments on commit 32e2ab0

Please sign in to comment.