Skip to content

Commit 94dac0e

Browse files
committed
opt(trace): 优化日志打印
1 parent c3ec95b commit 94dac0e

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
@@ -175,7 +175,7 @@ void Sink::commitRecord(const char *name, const char *module, uint32_t line, uin
175175

176176
auto time_cost = std::chrono::steady_clock::now() - start_ts;
177177
if (time_cost > std::chrono::milliseconds(100))
178-
LogNotice("trace commit cost > 100 ms, %lu us", time_cost.count() / 1000);
178+
LogNotice("trace commit cost > 100 ms, %lu us, %s at L%d", time_cost.count() / 1000, name, line);
179179
}
180180

181181
void Sink::onBackendRecvData(const void *data, size_t size)

0 commit comments

Comments
 (0)