Skip to content

Commit 8046afc

Browse files
committed
fix(trace):解决日志打印里直接使用了std::string的问题
1 parent 864c2fa commit 8046afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/trace/sink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ bool Sink::checkAndCreateRecordFile()
264264

265265
//!检查并创建路径
266266
if (!util::fs::MakeDirectory(records_path, false)) {
267-
LogErrno(errno, "create directory '%s' fail", records_path);
267+
LogErrno(errno, "create directory '%s' fail", records_path.c_str());
268268
return false;
269269
}
270270

0 commit comments

Comments
 (0)