Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1693
Modified Files: log.c Log Message: Resolves: #188320 Summary: HP-UX: warnings reported by the HP-UX compiler (Comment #25,26) Change description: moved the DEBUG_TRACE to the place before deleting the physical log file.
Index: log.c =================================================================== RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/log.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- log.c 18 Oct 2007 00:08:34 -0000 1.19 +++ log.c 23 Oct 2007 16:13:58 -0000 1.20 @@ -3145,6 +3145,10 @@ return 0; } } + LDAPDebug(LDAP_DEBUG_TRACE, + "LOGINFO:Removing file:%s.%s because of (%s)\n", + loginfo.log_error_file, tbuf, + logstr);
if (p_delete_logp == delete_logp) { /* then we are deleteing the first one */ @@ -3159,11 +3163,6 @@ if (PR_Delete(buffer) != PR_SUCCESS) { LDAPDebug(LDAP_DEBUG_ANY, "LOGINFO:Unable to remove file:%s.%s\n", loginfo.log_audit_file, tbuf,0); - } else { - LDAPDebug(LDAP_DEBUG_TRACE, - "LOGINFO:Removed file:%s.%s because of (%s)\n", - loginfo.log_error_file, tbuf, - logstr); } slapi_ch_free((void**)&delete_logp); loginfo.log_numof_error_logs--;
389-commits@lists.fedoraproject.org