]> the.earth.li Git - onak.git/blobdiff - log.c
Add getlogthreshold() to obtain current log level setting
[onak.git] / log.c
diff --git a/log.c b/log.c
index 7b17cb0d4191dc209fc1014a5c58df35f5d836c8..8ab5e96526b916283efe06e01b966c9eed7534d0 100644 (file)
--- a/log.c
+++ b/log.c
@@ -111,6 +111,17 @@ loglevels setlogthreshold(loglevels loglevel)
        return oldlevel;
 }
 
+/*
+ *     getlogthreshold - get the threshold for log output
+ *
+ *     Returns the threshold for log output; anything logged with a log level
+ *     lower than this will be silently dropped.
+ */
+loglevels getlogthreshold(void)
+{
+       return logthres;
+}
+
 /*
  *     vflog - write a log entry to an already opened log file.
  *      @logfile: The FILE * handle of the open log file.