109 @param context context information |
109 @param context context information |
110 @type QMessageLogContext |
110 @type QMessageLogContext |
111 @param message message to be shown |
111 @param message message to be shown |
112 @type bytes |
112 @type bytes |
113 """ |
113 """ |
114 if msgType < Preferences.getUI("MinimumMessageTypeSeverity"): |
|
115 # severity is lower than configured |
|
116 # just ignore the message |
|
117 return |
|
118 |
|
119 if _msgHandlerDialog: |
114 if _msgHandlerDialog: |
|
115 if msgType < Preferences.getUI("MinimumMessageTypeSeverity"): |
|
116 # severity is lower than configured |
|
117 # just ignore the message |
|
118 return |
|
119 |
120 try: |
120 try: |
121 if msgType == QtDebugMsg: |
121 if msgType == QtDebugMsg: |
122 messageType = "Debug Message:" |
122 messageType = "Debug Message:" |
123 elif msgType == QtWarningMsg: |
123 elif msgType == QtWarningMsg: |
124 messageType = "Warning:" |
124 messageType = "Warning:" |