File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
python/plugins/processing/core Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class ProcessingLog:
40
40
LOG_INFO = 'INFO'
41
41
LOG_WARNING = 'WARNING'
42
42
LOG_ALGORITHM = 'ALGORITHM'
43
- DATE_FORMAT = u'%a %b %d %Y % H:%M:%S' . encode ( 'utf-8' )
43
+ DATE_FORMAT = "%Y-%m- %d %H:%M:%S"
44
44
recentAlgs = []
45
45
46
46
@staticmethod
@@ -53,7 +53,7 @@ def startLogging():
53
53
encoding = 'utf-8' )
54
54
logfile .write ('Started logging at ' +
55
55
datetime .datetime .now ().strftime (
56
- ProcessingLog .DATE_FORMAT ). decode ( 'utf-8' ) + '\n ' )
56
+ ProcessingLog .DATE_FORMAT ) + '\n ' )
57
57
logfile .close ()
58
58
59
59
@staticmethod
@@ -70,7 +70,7 @@ def addToLog(msgtype, msg):
70
70
# to miss some log info that breaking the algorithm.
71
71
if msgtype == ProcessingLog .LOG_ALGORITHM :
72
72
line = msgtype + '|' + datetime .datetime .now ().strftime (
73
- ProcessingLog .DATE_FORMAT ). decode ( 'utf-8' ) + '|' \
73
+ ProcessingLog .DATE_FORMAT )+ '|' \
74
74
+ msg + '\n '
75
75
logfile = codecs .open (ProcessingLog .logFilename (), 'a' ,
76
76
encoding = 'utf-8' )
You can’t perform that action at this time.
0 commit comments