Fix warning.

This commit is contained in:
levlam 2022-10-08 20:54:58 +03:00
parent a7a17b34b3
commit f12b2f5efe

View File

@ -93,8 +93,9 @@ void FileLog::do_append(int log_level, CSlice slice) {
auto total_time = Time::now() - start_time;
if (total_time >= 0.1 && log_level >= 1) {
auto thread_id = get_thread_id();
fd_.write(PSLICE() << "[ 1][t" << (0 <= thread_id && thread_id < 10 ? " " : "") << thread_id
<< "] !!! Previous logging took " << total_time << " seconds !!!\n");
auto r_size = fd_.write(PSLICE() << "[ 1][t" << (0 <= thread_id && thread_id < 10 ? " " : "") << thread_id
<< "] !!! Previous logging took " << total_time << " seconds !!!\n");
r_size.ignore();
}
}