개정판 aa95a0dc
issue #000: logging test
Change-Id: Ic3f3198249530393f94836a152da553ab79636a0
DTI_PID/DTI_PID/App.py | ||
---|---|---|
122 | 122 |
selectedProject = dlg.showDialog() |
123 | 123 |
if selectedProject is not None: |
124 | 124 |
AppDocData.instance().setCurrentProject(selectedProject) |
125 |
AppDocData.instance().ex = exceptionHandler |
|
125 | 126 |
app._mainWnd = MainWindow.instance() |
126 | 127 |
app._mainWnd.show() |
127 | 128 |
sys.exit(app.exec_()) |
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
245 | 245 |
from App import App |
246 | 246 |
|
247 | 247 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
248 |
AppDocData.instance().ex.logger.critical('message') |
|
248 | 249 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
249 | 250 |
|
250 | 251 |
''' |
내보내기 Unified diff