diff --git a/src/shred.cpp b/src/shred.cpp index f46156d..71b166d 100644 --- a/src/shred.cpp +++ b/src/shred.cpp @@ -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; }