X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=log.c;h=8ab5e96526b916283efe06e01b966c9eed7534d0;hb=372714d2cbb87182a374ab2a5ecc4833d107425b;hp=7b17cb0d4191dc209fc1014a5c58df35f5d836c8;hpb=5e1b22d763640c4d7a09d07920403d8d491b4410;p=onak.git diff --git a/log.c b/log.c index 7b17cb0..8ab5e96 100644 --- 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.