summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/htslib.c7
-rw-r--r--src/htsopt.h1
-rw-r--r--src/httrack-library.h1
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,