Parcourir la source

remove debug from db queries except critical

CauseFX il y a 4 ans
Parent
commit
4b744077e5
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      api/classes/organizr.class.php

+ 1 - 3
api/classes/organizr.class.php

@@ -7375,7 +7375,6 @@ class Organizr
 	
 	
 	protected function processQueries(array $request, $migration = false)
 	protected function processQueries(array $request, $migration = false)
 	{
 	{
-		$this->setLoggerChannel('Database')->debug('Submitting query to database', $request);
 		$results = array();
 		$results = array();
 		$firstKey = '';
 		$firstKey = '';
 		try {
 		try {
@@ -7411,10 +7410,9 @@ class Organizr
 				}
 				}
 			}
 			}
 		} catch (Exception $e) {
 		} catch (Exception $e) {
-			$this->logger->critical($e, $request);
+			$this->setLoggerChannel('Database')->logger->critical($e, $request);
 			return false;
 			return false;
 		}
 		}
-		$this->logger->debug('Results from database', $results);
 		return count($request) > 1 ? $results : $results[$firstKey];
 		return count($request) > 1 ? $results : $results[$firstKey];
 	}
 	}