From 4b1c6ecccb0a1dc155f6fe8c40d3c353b79c09a4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 12 Nov 2013 17:52:41 -0500 Subject: Reduce gpsd log verbosity a lot. Way too much logging was happening at LOG_IO level, which is intended for watching data traffic in and out of the daemon rather than all the minutiae of data analysis - that's LOG_DATA. Also, LOG_DATA gets pushed down two levels. The effect is that -D 5 means exactly what it did, but for purposes other than driver debugging -D 4 now suffices. --- drivers.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'drivers.c') diff --git a/drivers.c b/drivers.c index 3cc6ccbb..b25fa7b3 100644 --- a/drivers.c +++ b/drivers.c @@ -39,9 +39,11 @@ gps_mask_t generic_parse_input(struct gps_device_t *session) char *sentence = (char *)session->packet.outbuffer; if (sentence[strlen(sentence)-1] != '\n') - gpsd_report(session->context->debug, LOG_IO, "<= GPS: %s\n", sentence); + gpsd_report(session->context->debug, LOG_IO, + "<= GPS: %s\n", sentence); else - gpsd_report(session->context->debug, LOG_IO, "<= GPS: %s", sentence); + gpsd_report(session->context->debug, LOG_IO, + "<= GPS: %s", sentence); if ((st=nmea_parse(sentence, session)) == 0) { gpsd_report(session->context->debug, LOG_WARN, @@ -706,10 +708,12 @@ static bool tnt_send(struct gps_device_t *session, const char *fmt, ...) va_end(ap); sent = tnt_control_send(session, buf, strlen(buf)); if (sent == (ssize_t) strlen(buf)) { - gpsd_report(session->context->debug, LOG_IO, "=> GPS: %s\n", buf); + gpsd_report(session->context->debug, LOG_IO, + "=> GPS: %s\n", buf); return true; } else { - gpsd_report(session->context->debug, LOG_WARN, "=> GPS: %s FAILED\n", buf); + gpsd_report(session->context->debug, LOG_WARN, + "=> GPS: %s FAILED\n", buf); return false; } } -- cgit v1.2.1