Skip to content

Commit

Permalink
Return content from var_export in DataBaseHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
p0lemic committed Oct 8, 2020
2 parents 32e2ab0 + e9e12bf commit b75f9dc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 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: " . var_export($this->persistence->errorInfo()) );
Error info: " . var_export($this->persistence->errorInfo(), true) );
}
}

Expand Down Expand Up @@ -111,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: " . var_export($this->persistence->errorInfo()) );
Error info: " . var_export($this->persistence->errorInfo(), true) );
}
}

Expand All @@ -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: " . var_export( $this->persistence->errorInfo()));
Error info: " . var_export( $this->persistence->errorInfo(), true));
}
}

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: " . var_export($this->persistence->errorInfo()) );
Error info: " . var_export($this->persistence->errorInfo(), true) );

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: " . var_export($this->persistence->errorInfo()) );
Error info: " . var_export($this->persistence->errorInfo(), true) );

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: " . var_export($this->persistence->errorInfo()) );
Error info: " . var_export($this->persistence->errorInfo(), true) );

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: " . var_export($this->persistence->errorInfo()) );
Error info: " . var_export($this->persistence->errorInfo(), true) );

return false;
}
Expand Down

0 comments on commit b75f9dc

Please sign in to comment.