[Qgis-developer] how to disable QGIS debug messages inside python terminal interpreter?

2013-07-02 Thread G. Allegri
I'm writing some headless Python scripts which use the QGIS API for data management. QgsLogger prints debug messages even if QGIS_DEBUG env var is set to 0. How can I disble it? Giovanni -- Giovanni Allegri http://about.me/giovanniallegri blog: http://blog.spaziogis.it GEO+ geomatica in Italia

Re: [Qgis-developer] how to disable QGIS debug messages inside python terminal interpreter?

2013-07-02 Thread Marco Bernasocchi
a bit of a workaround, but setting QGIS_LOG_FILE=/dev/null does the trick ciao Marco Bernasocchi (mobile) http://opengis.ch On Jul 2, 2013 11:54 AM, G. Allegri gioha...@gmail.com wrote: I'm writing some headless Python scripts which use the QGIS API for data management. QgsLogger prints debug

Re: [Qgis-developer] how to disable QGIS debug messages inside python terminal interpreter?

2013-07-02 Thread G. Allegri
I've found a workaround right now. Setting QGIS_DEBUG to -1000 makes QgsLogger stopping all the messages (default to -999). 2013/7/2 G. Allegri gioha...@gmail.com I'm writing some headless Python scripts which use the QGIS API for data management. QgsLogger prints debug messages even if

Re: [Qgis-developer] how to disable QGIS debug messages inside python terminal interpreter?

2013-07-02 Thread G. Allegri
Hi Marco, we replied at the same time :) I forgot to say that I'm on Windows so no /dev/null there... NUL makes python crash. Abnyway, even with -1000 there's an annoying issue. I always have to click the down arrow on the keyboard to show the prompt, otherwise the interpreter remains blinking

Re: [Qgis-developer] how to disable QGIS debug messages inside python terminal interpreter?

2013-07-02 Thread Jürgen E . Fischer
Hi Giovanni, On Tue, 02. Jul 2013 at 11:53:59 +0200, G. Allegri wrote: I'm writing some headless Python scripts which use the QGIS API for data management. QgsLogger prints debug messages even if QGIS_DEBUG env var is set to 0. How can I disble it? Try setting QGIS_DEBUG to -1.