add call to logger
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user