Set default source for print_log()

This commit is contained in:
Dominik V. Salonen 2018-03-20 22:14:58 +01:00
parent 155dd4ce3f
commit d5a2a2a82e
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import time
# Some messages pass a True or False as should_print depending on config variables
# Default to true, but return doing nothing if they pass a False.
def print_log(source, message, should_print=True):
def print_log(source="None", message, should_print=True):
if should_print == False:
return