Skip to content

Instantly share code, notes, and snippets.

@zackdever
Created March 13, 2013 06:49
Show Gist options
  • Save zackdever/5149865 to your computer and use it in GitHub Desktop.
Save zackdever/5149865 to your computer and use it in GitHub Desktop.
def debug_dict(self, debug_message, data_dict):
import logging
info = '%s\n' % debug_message
for k, v in sorted(data_dict.iteritems()):
info += '%s: %s\n' % (k, v)
logging.debug(info)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment