]> the.earth.li Git - onak.git/blobdiff - log.c
Remove dead store in generic_fetch_key
[onak.git] / log.c
diff --git a/log.c b/log.c
index 7b17cb0d4191dc209fc1014a5c58df35f5d836c8..45ec17e01bfef44420a52834034043594bfa5982 100644 (file)
--- 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 <https://www.gnu.org/licenses/>.
  */
 
 #include <stdarg.h>
@@ -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.