Skip to content

Commit

Permalink
OrcCommand: WolfExecution: print archive file size once completed
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienfl-orc committed Nov 20, 2020
1 parent 132f49f commit 873a38f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/OrcCommand/UtilitiesMain.h
Expand Up @@ -172,7 +172,7 @@ class ORCLIB_API UtilitiesMain
Log::Info(L"Archive: Output '{}' added", item->Keyword());
break;
case ArchiveNotification::ArchiveComplete:
Log::Info(L"Archive: '{}' is complete", item->Keyword());
Log::Info(L"Archive: '{}' is complete ({})", item->Keyword(), item->FileSize());
break;
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/OrcCommand/WolfExecution_Execute.cpp
Expand Up @@ -201,7 +201,11 @@ HRESULT WolfExecution::CreateArchiveAgent()
m_journal.Print(archive->CommandSet(), operation, L"Add stream: {}", archive->Keyword());
break;
case ArchiveNotification::ArchiveComplete:
m_journal.Print(archive->CommandSet(), operation, L"Completed: {}", archive->Keyword());
m_journal.Print(
archive->CommandSet(),
operation, L"Completed: {} ({})",
archive->Keyword(),
archive->FileSize());
break;
}
});
Expand Down
4 changes: 4 additions & 0 deletions src/OrcLib/ArchiveAgent.cpp
Expand Up @@ -444,6 +444,10 @@ void ArchiveAgent::run()
{
notification = ArchiveNotification::MakeSuccessNotification(
request, ArchiveNotification::ArchiveComplete, m_cabName);
if (notification)
{
notification->SetFileSize(m_cabName);
}
}

if (notification)
Expand Down

0 comments on commit 873a38f

Please sign in to comment.