ITS#3275: fix logging

This commit is contained in:
Kurt Zeilenga 2004-08-28 00:50:15 +00:00
parent 81265a7872
commit f39d6f80fb

View File

@ -139,13 +139,13 @@ copy_replog(
dfp = lock_fopen( dst, "a", &dlfp );
if ( dfp == NULL ) {
#ifdef NEW_LOGGING
LDAP_LOG ( SLURPD, ERR, "copy_replog: "
"Error: Can't lock replog \"%s\" for write: %s\n",
src, sys_errlist[ errno ], 0 );
LDAP_LOG ( SLURPD, ERR,
"copy_replog: Error: Can't lock replog \"%s\" for write: %s\n",
dst, sys_errlist[ errno ], 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: copy_replog: Can't lock replog \"%s\" for write: %s\n",
src, sys_errlist[ errno ], 0 );
Debug( LDAP_DEBUG_ANY,
"Error: copy_replog: Can't lock replog \"%s\" for write: %s\n",
dst, sys_errlist[ errno ], 0 );
#endif
lock_fclose( rfp, lfp );
return( 1 );
@ -165,12 +165,13 @@ copy_replog(
if ( lock_fclose( dfp, dlfp ) == EOF ) {
#ifdef NEW_LOGGING
LDAP_LOG ( SLURPD, ERR, "copy_replog: "
"Error: Error closing \"%s\"\n", src, 0, 0 );
LDAP_LOG ( SLURPD, ERR,
"copy_replog: Error: Error closing \"%s\"\n",
dst, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: copy_replog: Error closing \"%s\"\n",
src, 0, 0 );
Debug( LDAP_DEBUG_ANY,
"Error: copy_replog: Error closing \"%s\"\n",
dst, 0, 0 );
#endif
}
if ( lock_fclose( rfp, lfp ) == EOF ) {