diff --git a/frameworks/libs/distributeddb/common/src/log_print.cpp b/frameworks/libs/distributeddb/common/src/log_print.cpp index 30a0a47ba4c7c6195a2e6d2cea1e355b1ef53b0d..d8919b55bbaf78e2e21ca4349ea7b33a10e413ee 100644 --- a/frameworks/libs/distributeddb/common/src/log_print.cpp +++ b/frameworks/libs/distributeddb/common/src/log_print.cpp @@ -91,6 +91,7 @@ void Logger::DeleteInstance() { std::unique_lock writeLock(logMutex); logHandler.reset(); + logHandler = nullptr; } void Logger::Log(Level level, const std::string &tag, const char *func, int line, const char *format, ...)