1. Andrew Godwin
  2. south

Commits

Andrew Godwin  committed f871b45

Make logging better by adding sql as an extra.

  • Participants
  • Parent commits 491513c
  • Branches default

Comments (0)

Files changed (1)

File south/db/generic.py

View file
  • Ignore whitespace
         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 []