Updated logging

This commit is contained in:
Uwe Seimet 2021-09-15 13:32:29 +02:00
parent 14437274e2
commit 2ffad76c64

View File

@ -753,6 +753,8 @@ bool CreateImage(int fd, const PbCommand& command)
close(image_fd);
LOGINFO("%s", string("Created image file '" + filename + "'").c_str());
return ReturnStatus(fd);
}
@ -773,6 +775,8 @@ bool DeleteImage(int fd, const PbCommand& command)
return ReturnStatus(fd, false, "Can't delete image file '" + filename + "': " + string(strerror(errno)));
}
LOGINFO("%s", string("Deleted image file '" + filename + "'").c_str());
return ReturnStatus(fd);
}
@ -798,6 +802,8 @@ bool RenameImage(int fd, const PbCommand& command)
return ReturnStatus(fd, false, "Can't rename image file '" + src + "' to '" + dst + "': " + string(strerror(errno)));
}
LOGINFO("%s", string("Renamed image file '" + src + "' to '" + dst + "'").c_str());
return ReturnStatus(fd);
}