Sfoglia il codice sorgente

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.

Noriko Hosoi 18 anni fa
parent
commit
3dd48aa1f9
1 ha cambiato i file con 4 aggiunte e 5 eliminazioni
  1. 4 5
      ldap/servers/slapd/log.c

+ 4 - 5
ldap/servers/slapd/log.c

@@ -3145,6 +3145,10 @@ delete_logfile:
 			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 @@ delete_logfile:
 	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--;