Last active
October 7, 2022 09:01
-
-
Save mbaldessari/a1663800f6aa15c7cd953eca339e6836 to your computer and use it in GitHub Desktop.
quick debug function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def lol(msg): | |
import datetime | |
with open('/tmp/lol.txt', 'a+', encoding='utf-8') as f: | |
f.write('[LOL] %s %s\n' % (str(datetime.datetime.now()), msg)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment