Skip to content

Instantly share code, notes, and snippets.

@hideshi
Created December 8, 2013 13:06
Show Gist options
  • Save hideshi/7857163 to your computer and use it in GitHub Desktop.
Save hideshi/7857163 to your computer and use it in GitHub Desktop.
The most simple way to write debug log.
debug = True
print('debug1') if debug else ''
debug = False
print('debug2') if debug else ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment