프로젝트

일반

사용자정보

개정판 553d54e4

ID553d54e439c8f3cf94b1825e32b0929653e92009
상위 b389e939
하위 ea5a9e63

함의성이(가) 5년 이상 전에 추가함

issue #000: unhandled error msg added not only log file but also terminal box

Change-Id: Ia7ee273695f42e6e1b07c8706993339948c879b4

차이점 보기:

DTI_PID/DTI_PID/ExceptionHandler.py
28 28

  
29 29
    def handler(self, exctype, value, traceback):
30 30
        """ log exception, file namd and line number """
31
        from App import App
32
        from AppDocData import MessageType
31 33

  
32 34
        message = 'error occured({}) in {}:{}'.format(value, traceback.tb_frame.f_code.co_filename, traceback.tb_lineno)
33 35
        self.errorSignal.emit()
34
        self.logger.critical('Unhandled exception: {}'.format(message))
36
        self.logger.critical('Unhandled exception: {}'.format(message))
37

  
38
        App.mainWnd().addMessage.emit(MessageType.Error, message)  

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)