added new function: debug_log()

This commit is contained in:
Igor Chubin 2018-11-02 18:11:49 +01:00
parent 074ee31798
commit eed7c3597d

View File

@ -87,6 +87,14 @@ def log(text):
print text
logging.info(text)
def debug_log(text):
"""
Write `text` to the debug log
"""
with open('/tmp/wttr.in-debug.log', 'a') as f_debug:
f_debug.write(text+'\n')
def get_help_file(lang):
"Return help file for `lang`"