Skip to content

Commit

Permalink
[#30] Removing error message on deletion failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinKyleJames committed Jul 23, 2019
1 parent bbbd6bb commit 386f9aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions irods_lustre_plugin/src/irods_lustre_operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,8 @@ void handle_unlink(const std::vector<std::pair<std::string, std::string> >& regi
status = find_irods_path_with_avu(_comm, fidstr_avu_key, fidstr, "", false, irods_path);

if (status != 0) {
rodsLog(LOG_ERROR, "Error unregistering data object %s. Error is %i", fidstr.c_str(), status);
// Log as debug since this is a normal condition when the data object is not in register map.
rodsLog(LOG_DEBUG, "Error unregistering data object %s. Error is %i", fidstr.c_str(), status);
return;
}

Expand Down Expand Up @@ -1460,7 +1461,8 @@ void handle_rmdir(const std::vector<std::pair<std::string, std::string> >& regis
status = find_irods_path_with_avu(_comm, fidstr_avu_key, fidstr, "", true, irods_path);

if (status != 0) {
rodsLog(LOG_ERROR, "Error deleting directory %s. Error is %i", fidstr.c_str(), status);
// Log as debug since this is a normal condition when the collection is not in register map.
rodsLog(LOG_DEBUG, "Error deleting directory %s. Error is %i", fidstr.c_str(), status);
return;
}

Expand Down

0 comments on commit 386f9aa

Please sign in to comment.