Browse Source

[db] fix logs

Maxime Alves LIRMM@home 3 years ago
parent
commit
05664dd899
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      pyheatpump/db.py

+ 2
- 1
pyheatpump/db.py View File

@@ -55,7 +55,8 @@ class DB():
55 55
 
56 56
     @staticmethod
57 57
     def sql(query, params={}):
58
-        logger.debug(query, params)
58
+        logger.debug('Query : %s', query)
59
+        logger.debug('Params : %s', params)
59 60
 
60 61
         if not DB.connect():
61 62
             raise Exception('Can\'t connect to DB')

Loading…
Cancel
Save