Suppress debug logs unless DEBUG is defined.
Sponsored by: DARPA, NAI Labs. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@95 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
70efc25d1c
commit
87b5599651
|
@ -31,7 +31,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $P4: //depot/projects/openpam/lib/openpam_log.c#11 $
|
* $P4: //depot/projects/openpam/lib/openpam_log.c#12 $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -62,6 +62,9 @@ _openpam_log(int level, const char *func, const char *fmt, ...)
|
||||||
|
|
||||||
switch (level) {
|
switch (level) {
|
||||||
case PAM_LOG_DEBUG:
|
case PAM_LOG_DEBUG:
|
||||||
|
#ifndef DEBUG
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
priority = LOG_DEBUG;
|
priority = LOG_DEBUG;
|
||||||
break;
|
break;
|
||||||
case PAM_LOG_VERBOSE:
|
case PAM_LOG_VERBOSE:
|
||||||
|
|
Loading…
Reference in New Issue