diff options
Diffstat (limited to 'lldb/source/API/SBStream.cpp')
| -rw-r--r-- | lldb/source/API/SBStream.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/API/SBStream.cpp b/lldb/source/API/SBStream.cpp index 9ceef3466f93..870cbb9e14d5 100644 --- a/lldb/source/API/SBStream.cpp +++ b/lldb/source/API/SBStream.cpp @@ -12,6 +12,7 @@ #include "lldb/Core/StreamFile.h" #include "lldb/Host/FileSystem.h" #include "lldb/Utility/Instrumentation.h" +#include "lldb/Utility/LLDBLog.h" #include "lldb/Utility/Status.h" #include "lldb/Utility/Stream.h" #include "lldb/Utility/StreamString.h" @@ -98,7 +99,7 @@ void SBStream::RedirectToFile(const char *path, bool append) { llvm::Expected<FileUP> file = FileSystem::Instance().Open(FileSpec(path), open_options); if (!file) { - LLDB_LOG_ERROR(GetLogIfAllCategoriesSet(LIBLLDB_LOG_API), file.takeError(), + LLDB_LOG_ERROR(GetLog(LLDBLog::API), file.takeError(), "Cannot open {1}: {0}", path); return; } |
