Skip to content

Commit ee580d4

Browse files
committed
Improve compress log thread
1 parent 3bf0a7d commit ee580d4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

proxy/include/proxy/logging.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ class auto_logger_file__
771771

772772
#ifdef LOGGING_ENABLE_COMPRESS_LOGS
773773
auto fn = filename.string();
774-
std::thread th([fn]()
774+
std::thread([fn]()
775775
{
776776
error_code ignore_ec;
777777
std::mutex& m = xlogging_compress__::compress_lock();
@@ -789,8 +789,7 @@ class auto_logger_file__
789789
}
790790

791791
fs::remove(fn, ignore_ec);
792-
});
793-
th.detach();
792+
}).detach();
794793
#endif
795794
break;
796795
}

0 commit comments

Comments
 (0)