From 95c6fc9d92982cef9e4ae2f3507fc29e7a3fd321 Mon Sep 17 00:00:00 2001 From: martin-s Date: Thu, 8 Nov 2007 23:07:04 +0000 Subject: [PATCH] Fixed some logging issues git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@551 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/src/vehicle.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/navit/src/vehicle.c b/navit/src/vehicle.c index a616ab3..517f88c 100644 --- a/navit/src/vehicle.c +++ b/navit/src/vehicle.c @@ -737,15 +737,22 @@ vehicle_add_log(struct vehicle *this_, struct log *log, struct attr **attrs) return 1; if (!strcmp(type->u.str,"nmea")) { this_->nmea_log=log; + if (this_->child) + this_->child->nmea_log=log; + } else if (!strcmp(type->u.str,"gpx")) { char *header="\n\n\n\n"; char *trailer="\n\n\n"; this_->gpx_log=log; + if (this_->child) + this_->child->gpx_log=log; log_set_header(log,header,strlen(header)); log_set_trailer(log,trailer,strlen(trailer)); } else if (!strcmp(type->u.str,"textfile")) { char *header="type=track\n"; this_->textfile_log=log; + if (this_->child) + this_->child->textfile_log=log; log_set_header(log,header,strlen(header)); } else return 1; -- 2.7.4