diff --git a/dbms/src/Storages/Distributed/DirectoryMonitor.cpp b/dbms/src/Storages/Distributed/DirectoryMonitor.cpp index 00129757591..a9b51aebdd4 100644 --- a/dbms/src/Storages/Distributed/DirectoryMonitor.cpp +++ b/dbms/src/Storages/Distributed/DirectoryMonitor.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -360,7 +361,7 @@ struct StorageDistributedDirectoryMonitor::Batch String tmp_file{parent.current_batch_file_path + ".tmp"}; if (Poco::File{tmp_file}.exists()) - LOG_ERROR(parent.log, "Temporary file `" << tmp_file << "` exists. Unclean shutdown?"); + LOG_ERROR(parent.log, "Temporary file " << backQuote(tmp_file) << " exists. Unclean shutdown?"); { WriteBufferFromFile out{tmp_file, O_WRONLY | O_TRUNC | O_CREAT};