Commits

Andrew Godwin committed f871b45

Make logging better by adding sql as an extra.

Comments (0)

Files changed (1)

south/db/generic.py

         if self.debug:
             print "   = %s" % sql, params
 
-        get_logger().debug('south execute "%s" with params "%s"' % (sql, params))
+        get_logger().debug('south execute "%s" with params "%s"' % (sql, params), extra={
+            'sql': sql,
+            'params': params,
+        })
 
         if self.dry_run:
             return []