Skip to content
Permalink
Browse files

add 'warning' to the respective python message log tab

  • Loading branch information
jef-n committed Feb 24, 2014
1 parent 6a3d0d8 commit 91ecc5f31bfb942bcd249affcd69a2643c24a42b
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/utils.py
@@ -52,7 +52,7 @@ def showWarning(message, category, filename, lineno, file=None, line=None):
stk += s.decode('utf-8', 'replace')
QgsMessageLog.logMessage(
"warning:%s\ntraceback:%s" % ( warnings.formatwarning(message, category, filename, lineno), stk),
QCoreApplication.translate( "Python", "Python" )
QCoreApplication.translate( "Python", "Python warning" )
)
warnings.showwarning = showWarning

0 comments on commit 91ecc5f

Please sign in to comment.
You can’t perform that action at this time.