mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-26 16:31:11 +00:00
Updated logging
This commit is contained in:
parent
14437274e2
commit
2ffad76c64
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user