diff --git a/wrappers/gmshpy/gmshCommon.i b/wrappers/gmshpy/gmshCommon.i
index b000422999f6cddc93d150298cdcb05d099abe27..47f02845dcf51463802bb887638c35519b99eec6 100644
--- a/wrappers/gmshpy/gmshCommon.i
+++ b/wrappers/gmshpy/gmshCommon.i
@@ -22,7 +22,7 @@
       // don't output anything special if we're running in a gui
       if(FlGui::available()) return;
 #endif
-      std::cout<<level<<" : "<<message<<std::endl;
+      (level == "Info" ? std::cout : std::cerr) <<level<<" : "<<message<<std::endl;
       if (level == "Fatal") 
         Msg::Exit(1);
     }