fix android log spam

This commit is contained in:
Jeremy Lakeman 2012-07-09 12:15:11 +09:30 committed by Andrew Bettison
parent aa29e1ad8c
commit 624be364bf

1
log.c
View File

@ -105,6 +105,7 @@ void vlogMessage(int level, const char *file, unsigned int line, const char *fun
case LOG_LEVEL_DEBUG: alevel = ANDROID_LOG_DEBUG; break;
}
__android_log_print(alevel, "servald", "%s", strbuf_str(&logbuf));
strbuf_reset(&logbuf);
#else
FILE *logf = open_logging();
if (logf) {