Changeset 521 in openpam for trunk


Ignore:
Timestamp:
Jan 11, 2012, 12:03:18 AM (7 years ago)
Author:
Dag-Erling Smørgrav
Message:

Reduce log spam.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_dynamic.c

    r520 r521  
    149149                        module->func[i] =
    150150                            (pam_func_t)dlsym(dlh, pam_sm_func_name[i]);
     151                        /*
     152                         * This openpam_log() call is a major source of
     153                         * log spam, and the cases that matter are caught
     154                         * and logged in openpam_dispatch().  This would
     155                         * be less problematic if dlerror() returned an
     156                         * error code so we could log an error only when
     157                         * dlsym() failed for a reason other than "no such
     158                         * symbol".
     159                         */
     160#if 0
    151161                        if (module->func[i] == NULL)
    152162                                openpam_log(PAM_LOG_DEBUG, "%s: %s(): %s",
    153163                                    path, pam_sm_func_name[i], dlerror());
     164#endif
    154165                }
    155166        }
Note: See TracChangeset for help on using the changeset viewer.