[GRASS-dev] [GRASS-SVN] r53518 - grass/trunk/lib/temporal/lib
Martin Landa
landa.martin at gmail.com
Sun Oct 21 09:27:22 PDT 2012
2012/10/21 Markus Neteler <neteler at osgeo.org>:
>>>> debug level 0 seems to be illegal.
>>>
>>> Why this?
>>
>> then this debug message will be printed *always*.
>
> That looks like a bug in this case.
well, `g.gisenv set=DEBUG=-1` will work. But AFAIR we used `DEBUG=0`
to turn off all debug messages. So first legal level should be 1.
>> In the manual we
>> claim that `g.gisenv set=DEBUG=0` turn of all debug messages.
>
> Yes, so I would expect G_debug(0, ...) to behave like this.
DEBUG=0 defines first printed debug level. So DEBUG=0 indicates that
all debug messages with level >= 0 will be printed out.
I think that `G_debug(0, ...)` should be changed to `G_debug(1, ...)`
in the code.
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
More information about the grass-dev
mailing list