Fix AsyncFileLog building without threads.
This commit is contained in:
parent
52aa76584a
commit
8b4bc80860
@ -15,6 +15,8 @@
|
||||
|
||||
namespace td {
|
||||
|
||||
#if !TD_THREAD_UNSUPPORTED
|
||||
|
||||
Status AsyncFileLog::init(string path, int64 rotate_threshold, bool redirect_stderr) {
|
||||
CHECK(path_.empty());
|
||||
CHECK(!path.empty());
|
||||
@ -149,4 +151,6 @@ void AsyncFileLog::do_append(int log_level, CSlice slice) {
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace td
|
||||
|
@ -15,6 +15,8 @@
|
||||
|
||||
namespace td {
|
||||
|
||||
#if !TD_THREAD_UNSUPPORTED
|
||||
|
||||
class AsyncFileLog final : public LogInterface {
|
||||
public:
|
||||
AsyncFileLog() = default;
|
||||
@ -44,4 +46,6 @@ class AsyncFileLog final : public LogInterface {
|
||||
void do_append(int log_level, CSlice slice) final;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace td
|
||||
|
Loading…
Reference in New Issue
Block a user