another fix try for the logging
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
def log(value):
|
||||
print(u' '.join(( str(datetime.now()), value)).encode('utf-8').strip())
|
||||
# print( str(value))
|
||||
|
||||
try: print( str(datetime.now()) + ' ' + value)
|
||||
|
||||
except UnicodeEncodeError:
|
||||
print((str(datetime.now()) + ' ' + value).encode('ascii', 'ignore').decode('ascii'))
|
||||
return print(str(datetime.now()) + ' print error')
|
||||
|
||||
#print(u' '.join(( str(datetime.now()), value)).encode('utf-8').strip())
|
||||
Reference in New Issue
Block a user