Browse Source

Logging deletion of local source file

Source commit: 3ea9086e41d01d61cb99dd79e4ec78144404b151
Martin Prikryl 5 years ago
parent
commit
73efbd0daf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      source/core/Terminal.cpp

+ 2 - 0
source/core/Terminal.cpp

@@ -7071,6 +7071,8 @@ void __fastcall TTerminal::UpdateSource(const TLocalFileHandle & Handle, const T
   {
   {
     if (!Handle.Directory)
     if (!Handle.Directory)
     {
     {
+      LogEvent(FORMAT(L"Deleting successfully uploaded source file \"%s\".", (Handle.FileName)));
+
       FILE_OPERATION_LOOP_BEGIN
       FILE_OPERATION_LOOP_BEGIN
       {
       {
         THROWOSIFFALSE(Sysutils::DeleteFile(ApiPath(Handle.FileName)));
         THROWOSIFFALSE(Sysutils::DeleteFile(ApiPath(Handle.FileName)));