瀏覽代碼

Merge pull request #523 from lassoan/python-log-error-to-stderr

BUG: Fixed issue of writing Python errors to stdout instead of stderr
Jean-Christophe Fillion-Robin 10 年之前
父節點
當前提交
42700cf8c8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Libs/Scripting/Python/Core/ctkAbstractPythonManager.cpp

+ 1 - 1
Libs/Scripting/Python/Core/ctkAbstractPythonManager.cpp

@@ -424,5 +424,5 @@ void ctkAbstractPythonManager::printStdout(const QString& text)
 //-----------------------------------------------------------------------------
 void ctkAbstractPythonManager::printStderr(const QString& text)
 {
-  std::cout << qPrintable(text);
+  std::cerr << qPrintable(text);
 }