From 2ffad76c64ce541151eac258370a2f36943b7dc0 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Wed, 15 Sep 2021 13:32:29 +0200 Subject: [PATCH] Updated logging --- src/raspberrypi/rascsi.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/raspberrypi/rascsi.cpp b/src/raspberrypi/rascsi.cpp index bc9bd91a..33c9ff2a 100644 --- a/src/raspberrypi/rascsi.cpp +++ b/src/raspberrypi/rascsi.cpp @@ -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); }