diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-07-09 18:19:32 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-07-09 18:19:32 +0000 |
commit | d03d97a163cf163aac4b17665a72e1d935d39c9a (patch) | |
tree | 927d7ced339b35d2822155097425404eccd23af6 /src | |
parent | f154d0e78c715fdc48f3bfcafdfbae69feeec1bb (diff) |
LOG_TRACE
Diffstat (limited to 'src')
-rw-r--r-- | src/htslib.c | 7 | ||||
-rw-r--r-- | src/htsopt.h | 1 | ||||
-rw-r--r-- | src/httrack-library.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/htslib.c b/src/htslib.c index 64c15b3..629f6c0 100644 --- a/src/htslib.c +++ b/src/htslib.c @@ -5262,6 +5262,13 @@ HTSEXT_API void hts_log_print(httrackp * opt, int type, const char *format, ...) const char *s_type = "unknown"; switch (type & 0xff) { + case LOG_TRACE: + // check verbosity + if (opt->debug < 3) { + return; + } + s_type = "trace"; + break; case LOG_DEBUG: // check verbosity if (opt->debug < 2) { diff --git a/src/htsopt.h b/src/htsopt.h index a841b49..c05156d 100644 --- a/src/htsopt.h +++ b/src/htsopt.h @@ -172,6 +172,7 @@ typedef struct lien_url lien_url; #ifndef HTS_DEF_DEFSTRUCT_hts_log_type #define HTS_DEF_DEFSTRUCT_hts_log_type typedef enum hts_log_type { + LOG_TRACE, LOG_DEBUG, LOG_INFO, LOG_NOTICE, diff --git a/src/httrack-library.h b/src/httrack-library.h index 380c0dd..099d3d1 100644 --- a/src/httrack-library.h +++ b/src/httrack-library.h @@ -47,6 +47,7 @@ typedef struct strc_int2bytes2 strc_int2bytes2; #ifndef HTS_DEF_DEFSTRUCT_hts_log_type #define HTS_DEF_DEFSTRUCT_hts_log_type typedef enum hts_log_type { + LOG_TRACE, LOG_DEBUG, LOG_INFO, LOG_NOTICE, |