X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;ds=inline;f=log.c;h=45ec17e01bfef44420a52834034043594bfa5982;hb=372df79a3c51d8de54440aba9b05f0af28b005a7;hp=7b17cb0d4191dc209fc1014a5c58df35f5d836c8;hpb=5e1b22d763640c4d7a09d07920403d8d491b4410;p=onak.git
diff --git a/log.c b/log.c
index 7b17cb0..45ec17e 100644
--- a/log.c
+++ b/log.c
@@ -13,8 +13,7 @@
* more details.
*
* You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * this program. If not, see .
*/
#include
@@ -111,6 +110,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.