From 9aca86af0c9c683dc1629519409eba4cd4cc4b8c Mon Sep 17 00:00:00 2001 From: localhorst Date: Wed, 10 Dec 2025 21:49:44 +0100 Subject: [PATCH] add call to logger --- src/shred.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }