diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-05-13 14:31:20 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-05-13 14:31:20 +0000 |
commit | bb4c595810ccd9b849be2d20f5c16d6076d083bb (patch) | |
tree | a0443629b2d996f0597f75e8bafee3f8fd13505e /src/htsmodules.c | |
parent | 84c47b0ce10547fdf223f721ef88f7af09af5401 (diff) |
Introducing the hts_log_print() logging function
* cleaned up logging
Diffstat (limited to 'src/htsmodules.c')
-rw-r--r-- | src/htsmodules.c | 6 |
1 files changed, 2 insertions, 4 deletions
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) { |