Skip to content

Commit

Permalink
re-add L_AUTH
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Dec 18, 2019
1 parent 354e9be commit 9c69505
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/util/log.c
Expand Up @@ -157,6 +157,7 @@ fr_table_num_ordered_t const fr_log_levels[] = {
{ "Info : ", L_INFO },
{ "Warn : ", L_WARN },
{ "Error : ", L_ERR },
{ "Auth : ", L_AUTH },
{ "WARN : ", L_DBG_WARN },
{ "ERROR : ", L_DBG_ERR },
{ "WARN : ", L_DBG_WARN_REQ },
Expand Down Expand Up @@ -424,6 +425,10 @@ int fr_vlog(fr_log_t const *log, fr_log_type_t type, char const *file, int line,
case L_ERR:
syslog_priority = LOG_ERR;
break;

case L_AUTH:
syslog_priority = LOG_AUTH;
break;
}
syslog(syslog_priority,
"%s" /* time */
Expand Down
1 change: 1 addition & 0 deletions src/lib/util/log.h
Expand Up @@ -54,6 +54,7 @@ typedef enum {
L_INFO = 3, //!< Informational message.
L_ERR = 4, //!< Error message.
L_WARN = 5, //!< Warning.
L_AUTH = 6, //!< Authentication logs
L_DBG = 16, //!< Only displayed when debugging is enabled.
L_DBG_INFO = 17, //!< Info only displayed when debugging is enabled.
L_DBG_WARN = 18, //!< Warning only displayed when debugging is enabled.
Expand Down

0 comments on commit 9c69505

Please sign in to comment.