diff options
| author | Daniel Gollub <dgollub@brocade.com> | 2014-11-20 17:53:39 +0100 |
|---|---|---|
| committer | Daniel Gollub <dgollub@brocade.com> | 2014-11-20 17:53:39 +0100 |
| commit | 5f9656f9ea793fa035fc130cd45f4405697eb5db (patch) | |
| tree | b946ef5e664f7011e082dcf37731b8b4b7d78c85 | |
| parent | 2a0436b8b02718edb813baf17ba5c52d390db0ab (diff) | |
| download | pam_tacplus-5f9656f9ea793fa035fc130cd45f4405697eb5db.tar.gz pam_tacplus-5f9656f9ea793fa035fc130cd45f4405697eb5db.zip | |
Reduce loglevel for non-critical author messages
Messages like "Args cnt %d", "Adding buf/value pair (%s,%s)" should not
flood syslog as warning.
| -rw-r--r-- | libtac/lib/author_r.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtac/lib/author_r.c b/libtac/lib/author_r.c index 99998cb..ba1c6c9 100644 --- a/libtac/lib/author_r.c +++ b/libtac/lib/author_r.c @@ -182,7 +182,7 @@ int tac_author_read(int fd, struct areply *re) { pktp = (u_char *) tb + TAC_AUTHOR_REPLY_FIXED_FIELDS_SIZE; argp = pktp + (tb->arg_cnt * sizeof(u_char)) + tb->msg_len + tb->data_len; - TACSYSLOG((LOG_WARNING, "Args cnt %d", tb->arg_cnt)); + TACSYSLOG((LOG_DEBUG, "Args cnt %d", tb->arg_cnt)); /* argp points to current argument string pktp points to current argument length */ for(r=0; r < tb->arg_cnt; r++) { @@ -211,7 +211,7 @@ int tac_author_read(int fd, struct areply *re) { /* now buff points to attribute name, value to the attribute value */ } - TACSYSLOG((LOG_WARNING, "Adding buf/value pair (%s,%s)", buff, value)); + TACSYSLOG((LOG_DEBUG, "Adding buf/value pair (%s,%s)", buff, value)); tac_add_attrib_pair(&re->attr, buff, sepchar, value); argp += *pktp; pktp++; |
