gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unexpected logging from gpsd


From: Greg Troxel
Subject: Re: Unexpected logging from gpsd
Date: Sun, 10 Oct 2021 11:59:20 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)

Mick Durkin <mickdurkinuk@gmail.com> writes:

> Hi Greg,
>
> I looked at /etc/rsyslog.conf and there was nothing set for debug severity.
>
> I created an entry thus:-
>
> # Log debug stuff
> *.debug                                                 /var/log/debug
>
> Now this log is getting all the gpsd messages about KPPS and PPS.

Someone needs to understand if the messages from gpsd are at LOG_DEBUG.
Seems like they are.

> That still leaves me unclear why gpsd is outputting debug data all the
> time.
> When we want debugging to be active we specify the level with the -D n option
> at startup. This output is only coming from the ppsthread code within gpsd,
> so why would that code be different?

Hard to say why, but it is not hard to believe.   There is LOG_DEBUG,
intended to help users of a program figure out why it's not doing what
they want, and then there is -D, intended to help people find bugs in
the source code.  So yes, there is some overlap  but some LOG_DEBUG
output when not -D is not a bug.

I would suggest looking at the sources for log statements, and you can
use git to find out when it changed.  (You wrote to gpsd-dev@ so that
feels like a fair response.)

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]