From 3d879800b2158517aaffef6d36fb35a1e009f9ef Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Thu, 11 Apr 2024 07:04:29 +0000 Subject: [PATCH] feat add parse error info --- src/sled/config.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sled/config.cc b/src/sled/config.cc index dd1b513..e2cc5e0 100644 --- a/src/sled/config.cc +++ b/src/sled/config.cc @@ -54,7 +54,7 @@ Config::ReadInConfig() return true; // goto config_read_success; } catch (const std::exception &e) { - LOGE("Failed to parse config file: {}, reason: e", sled::to_string(full_path), e.what()); + LOGE("Failed to parse config file: {}, reason: {}", sled::to_string(full_path), e.what()); } catch (...) { LOGD("Failed to parse config file: {}", sled::to_string(full_path)); }