fix spdlog namespace

This commit is contained in:
Joao Moreno 2018-01-11 21:58:02 +01:00
parent a938045135
commit 357a63d914
3 changed files with 5 additions and 5 deletions

View File

@ -373,10 +373,10 @@ inline void spdlog::details::async_log_helper::sleep_or_yield(const spdlog::log_
// sleep for 20 ms upto 200 ms
if (time_since_op <= milliseconds(200))
return spdlog::details::os::sleep_for_millis(20);
return details::os::sleep_for_millis(20);
// sleep for 500 ms
return spdlog::details::os::sleep_for_millis(500);
return details::os::sleep_for_millis(500);
}
// wait for the queue to be empty

View File

@ -55,7 +55,7 @@ public:
if (!os::fopen_s(&_fd, fname, mode))
return;
spdlog::details::os::sleep_for_millis(open_interval);
details::os::sleep_for_millis(open_interval);
}
throw spdlog_ex("Failed opening file " + os::filename_to_str(_filename) + " for writing", errno);

View File

@ -44,7 +44,7 @@ public:
int retry_count = 0;
while ((ret == -11/*EAGAIN*/) && (retry_count < SPDLOG_ANDROID_RETRIES))
{
spdlog::details::os::sleep_for_millis(5);
details::os::sleep_for_millis(5);
ret = __android_log_write(priority, _tag.c_str(), msg_output);
retry_count++;
}