Fix warning.
This commit is contained in:
parent
a7a17b34b3
commit
f12b2f5efe
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user