mirror of
https://github.com/chubin/wttr.in
synced 2024-12-26 03:33:12 +00:00
added new function: debug_log()
This commit is contained in:
parent
074ee31798
commit
eed7c3597d
1 changed files with 8 additions and 0 deletions
|
@ -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`"
|
||||
|
||||
|
|
Loading…
Reference in a new issue