Don't echo log messages to stderr (perforce change 9758)

This commit is contained in:
des 2002-04-16 22:04:22 +00:00
parent 2b150cf6ae
commit d1895aba33

View File

@ -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#12 $ * $P4: //depot/projects/openpam/lib/openpam_log.c#13 $
*/ */
#include <ctype.h> #include <ctype.h>
@ -83,9 +83,6 @@ _openpam_log(int level, const char *func, const char *fmt, ...)
if ((format = malloc(strlen(func) + len + 16)) != NULL) { if ((format = malloc(strlen(func) + len + 16)) != NULL) {
sprintf(format, "in %s(): %.*s\n", func, len, fmt); sprintf(format, "in %s(): %.*s\n", func, len, fmt);
vsyslog(priority, format, ap); vsyslog(priority, format, ap);
#ifdef DEBUG
vfprintf(stderr, format, ap);
#endif
free(format); free(format);
} else { } else {
vsyslog(priority, fmt, ap); vsyslog(priority, fmt, ap);