From d9bb3b279a86e158e39cb47a3f0f3e353de2a32d Mon Sep 17 00:00:00 2001 From: neverchanje Date: Wed, 18 Nov 2020 18:38:23 +0800 Subject: [PATCH] fix --- src/block_service/local/local_service.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/block_service/local/local_service.cpp b/src/block_service/local/local_service.cpp index 4e4a5c85bf..a25b882618 100644 --- a/src/block_service/local/local_service.cpp +++ b/src/block_service/local/local_service.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include @@ -36,7 +37,7 @@ bool file_metadata_from_json(std::ifstream &fin, file_metadata &fmeta) noexcept nlohmann::json::parse(data).get_to(fmeta); return true; } catch (nlohmann::json::exception &exp) { - dwarn("decode meta data from json failed: %s [%s]", exp.what(), data.c_str()); + dwarn_f("decode meta data from json failed: {} [{}]", exp.what(), data); return false; } }