diff options
author | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-11-22 22:36:24 +0000 |
---|---|---|
committer | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-11-22 22:36:24 +0000 |
commit | cb575bf823793db3620c77a3c7bf12a7d3856ed3 (patch) | |
tree | 0118c6ec64520748c7daefd46e57c226343621d2 /navit/log.c | |
parent | 72471adee798a3a1d8414f0d4f77be816fb4dad6 (diff) | |
download | navit-cb575bf823793db3620c77a3c7bf12a7d3856ed3.tar.gz |
Fix:core:Change all logging at lvl_error/warning to lvl_debug, unless it looks like an error message.|#1269, part 5
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5967 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/log.c')
-rw-r--r-- | navit/log.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/navit/log.c b/navit/log.c index d37396ccd..2bca13425 100644 --- a/navit/log.c +++ b/navit/log.c @@ -349,7 +349,7 @@ log_timer(struct log *this_) int delta; gettimeofday(&tv, NULL); delta=(tv.tv_sec-this_->last_flush.tv_sec)*1000+(tv.tv_usec-this_->last_flush.tv_usec)/1000; - dbg(lvl_warning,"delta=%d flush_time=%d\n", delta, this_->flush_time); + dbg(lvl_debug,"delta=%d flush_time=%d\n", delta, this_->flush_time); if (this_->flush_time && delta >= this_->flush_time*1000) log_flush(this_,0); #endif @@ -386,7 +386,7 @@ log_new(struct attr * parent,struct attr **attrs) struct file_wordexp *wexp; char *filename, **wexp_data; - dbg(lvl_warning,"enter\n"); + dbg(lvl_debug,"enter\n"); ret->func=&log_func; navit_object_ref((struct navit_object *)ret); data=attr_search(attrs, NULL, attr_data); @@ -418,7 +418,7 @@ log_new(struct attr * parent,struct attr **attrs) if (flush_time) ret->flush_time=flush_time->u.num; if (ret->flush_time) { - dbg(lvl_warning,"interval %d\n", ret->flush_time*1000); + dbg(lvl_debug,"interval %d\n", ret->flush_time*1000); ret->timer_callback=callback_new_1(callback_cast(log_timer), ret); ret->timer=event_add_timeout(ret->flush_time*1000, 1, ret->timer_callback); } @@ -492,9 +492,9 @@ log_set_trailer(struct log *this_, char *data, int len) void log_write(struct log *this_, char *data, int len, enum log_flags flags) { - dbg(lvl_warning,"enter\n"); + dbg(lvl_debug,"enter\n"); if (log_change_required(this_)) { - dbg(lvl_warning,"log_change"); + dbg(lvl_debug,"log_change"); log_change(this_); } if (flags & log_flag_replace_buffer) @@ -561,7 +561,7 @@ log_printf(struct log *this_, char *fmt, ...) void log_destroy(struct log *this_) { - dbg(lvl_error,"enter\n"); + dbg(lvl_debug,"enter\n"); attr_list_free(this_->attrs); callback_destroy(this_->timer_callback); event_remove_timeout(this_->timer); |