add call to logger

This commit is contained in:
2025-12-10 21:49:44 +01:00
parent 26c42a7e5d
commit 9aca86af0c

View File

@ -239,6 +239,7 @@ int Shred::iRewindDrive(fileDescriptor file)
if (0 != lseek(file, 0L, SEEK_SET))
{
perror("unable to rewind drive");
Logger::logThis()->info("Unable to rewind drive! - fileDescriptor: " + to_string(file));
return -1;
}
else
@ -254,6 +255,7 @@ long Shred::getDriveSizeInBytes(fileDescriptor file)
if (liDriveSizeTmp == -1)
{
perror("unable to get drive size");
Logger::logThis()->info("Unable to get drive size! - fileDescriptor: " + to_string(file));
return 0L;
}