diff --git a/vrs/ProgressLogger.cpp b/vrs/ProgressLogger.cpp index 9311e040..b10b6295 100644 --- a/vrs/ProgressLogger.cpp +++ b/vrs/ProgressLogger.cpp @@ -21,6 +21,7 @@ #define DEFAULT_LOG_CHANNEL "ProgressLogger" #include +#include #include using namespace std; @@ -103,11 +104,11 @@ void ProgressLogger::updateNextProgressTime() { } void ProgressLogger::logMessage(const string& message) { - XR_LOGI("{:.3f}: {}", os::getTimestampSec(), message); + XR_LOGI("{}: {}", helpers::humanReadableDateTime(os::getCurrentTimeSecSinceEpoch()), message); } void ProgressLogger::logError(const string& message) { - XR_LOGE("{:.3f}: {}", os::getTimestampSec(), message); + XR_LOGE("{}: {}", helpers::humanReadableDateTime(os::getCurrentTimeSecSinceEpoch()), message); } void ProgressLogger::updateStep(size_t /*progress*/, size_t /*maxProgress*/) {} diff --git a/vrs/RecordFileReader.cpp b/vrs/RecordFileReader.cpp index a7a2632e..869d6d75 100644 --- a/vrs/RecordFileReader.cpp +++ b/vrs/RecordFileReader.cpp @@ -201,10 +201,7 @@ int RecordFileReader::doOpenFile( const int kOpenTotalStepCount = 5; openProgressLogger_->setStepCount(kOpenTotalStepCount); LOG_PROGRESS(FileHandlerFactory::getInstance().delegateOpen(fileSpec, file_), error, [&]() { - const string& fileHandlerName = - fileSpec.fileHandlerName.empty() ? file_->getFileHandlerName() : fileSpec.fileHandlerName; - return "Opening " + fileHandlerName + " file " + - helpers::humanReadableDateTime(os::getCurrentTimeSecSinceEpoch()); + return "Opening " + fileSpec.getEasyPath(); }); // log remote file handler names with success/failure status if (file_ && file_->isRemoteFileSystem()) {