[GRASS-dev] [GRASS-SVN] r53518 - grass/trunk/lib/temporal/lib

Anna Kratochvílová kratochanna at gmail.com
Sun Oct 21 09:42:08 PDT 2012


On Sun, Oct 21, 2012 at 6:27 PM, Martin Landa <landa.martin at gmail.com> wrote:
> 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


btw, this change of the debug level is not related do the message
(Michael was asking about):

Default TGIS driver / database set to:
driver: sqlite
database: $GISDBASE/$LOCATION_NAME/PERMANENT/tgis.db

this is G_important_message and comes from
lib/temporal/t.connect/main.c. As I understand it, you get it only for
the first time when the temporal database is created so it should stay
there.

Anna


More information about the grass-dev mailing list