mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 10:02:02 -04:00
Replace Logger static class with Log class
This commit is contained in:
parent
f7558eab3a
commit
934545c191
6 changed files with 73 additions and 69 deletions
|
@ -58,7 +58,7 @@ class DbConnection{
|
|||
var_dump($ex);
|
||||
}
|
||||
else{
|
||||
Logger::WriteErrorLogEntry('Error connecting to ' . $connectionString . '. Exception: ' . vds($ex));
|
||||
Log::WriteErrorLogEntry('Error connecting to ' . $connectionString . '. Exception: ' . vds($ex));
|
||||
}
|
||||
|
||||
if($require){
|
||||
|
@ -139,9 +139,9 @@ class DbConnection{
|
|||
throw($ex);
|
||||
}
|
||||
else{
|
||||
Logger::WriteErrorLogEntry($ex->getMessage());
|
||||
Logger::WriteErrorLogEntry($preparedSql);
|
||||
Logger::WriteErrorLogEntry(vds($params));
|
||||
Log::WriteErrorLogEntry($ex->getMessage());
|
||||
Log::WriteErrorLogEntry($preparedSql);
|
||||
Log::WriteErrorLogEntry(vds($params));
|
||||
throw($ex);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue