From bb4c595810ccd9b849be2d20f5c16d6076d083bb Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Mon, 13 May 2013 14:31:20 +0000 Subject: Introducing the hts_log_print() logging function * cleaned up logging --- src/htsmodules.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/htsmodules.c') diff --git a/src/htsmodules.c b/src/htsmodules.c index ea75a7f..4c37047 100644 --- a/src/htsmodules.c +++ b/src/htsmodules.c @@ -362,10 +362,8 @@ void htspe_uninit(void) { static void htspe_log(htsmoduleStruct* str, const char* msg) { const char* savename = str->filename; httrackp* opt = (httrackp*) str->opt; - if ((opt->debug>1) && (opt->log!=NULL)) { - HTS_LOG(opt,LOG_DEBUG); fprintf(opt->log,"(External module): parsing %s using module %s"LF, - savename, msg); - } + hts_log_print(opt, LOG_DEBUG, "(External module): parsing %s using module %s", + savename, msg); } HTSEXT_API const char* hts_is_available(void) { -- cgit v1.2.3