Include current time in error report
This commit is contained in:
@@ -659,7 +659,10 @@ class BENCHMARK_OT_save_error_report(bpy.types.Operator):
|
|||||||
import traceback
|
import traceback
|
||||||
import functools
|
import functools
|
||||||
import pprint
|
import pprint
|
||||||
from benchmark.version import version
|
import datetime
|
||||||
|
|
||||||
|
from ..foundation.third_party.dateutil import tz
|
||||||
|
from ..version import version
|
||||||
|
|
||||||
with G.progress_lock, open(self.filepath, "w", encoding='utf-8') as outfile:
|
with G.progress_lock, open(self.filepath, "w", encoding='utf-8') as outfile:
|
||||||
p = functools.partial(print, file=outfile)
|
p = functools.partial(print, file=outfile)
|
||||||
@@ -667,6 +670,7 @@ class BENCHMARK_OT_save_error_report(bpy.types.Operator):
|
|||||||
p('version:', version)
|
p('version:', version)
|
||||||
if 'MYDATA' in os.environ:
|
if 'MYDATA' in os.environ:
|
||||||
p('mydata URL:', os.environ['MYDATA'])
|
p('mydata URL:', os.environ['MYDATA'])
|
||||||
|
p('current time:', datetime.datetime.now(tz=tz.tzlocal()).isoformat())
|
||||||
p()
|
p()
|
||||||
|
|
||||||
p(20 * '=', 'Exception:')
|
p(20 * '=', 'Exception:')
|
||||||
|
Reference in New Issue
Block a user