mirror of
https://github.com/friendica/friendica
synced 2025-04-26 09:10:15 +00:00
Improve Logger calls
- Add context in various calls - Remove deprecated Logger::log call in Processor
This commit is contained in:
parent
cb78e77850
commit
67aa188830
5 changed files with 29 additions and 11 deletions
|
@ -425,7 +425,7 @@ class DBA
|
|||
|
||||
if ((substr_count($sql, '?') != count($args)) && (count($args) > 0)) {
|
||||
// Question: Should we continue or stop the query here?
|
||||
Logger::error('Parameter mismatch. Query "'.$sql.'" - Parameters '.print_r($args, true));
|
||||
Logger::warning('Query parameters mismatch.', ['query' => $sql, 'args' => $args, 'callstack' => System::callstack()]);
|
||||
}
|
||||
|
||||
$sql = self::cleanQuery($sql);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue