Commit 357a63d9 authored by Joao Moreno's avatar Joao Moreno

fix spdlog namespace

parent a9380451
...@@ -373,10 +373,10 @@ inline void spdlog::details::async_log_helper::sleep_or_yield(const spdlog::log_ ...@@ -373,10 +373,10 @@ inline void spdlog::details::async_log_helper::sleep_or_yield(const spdlog::log_
// sleep for 20 ms upto 200 ms // sleep for 20 ms upto 200 ms
if (time_since_op <= milliseconds(200)) 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 // 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 // wait for the queue to be empty
......
...@@ -55,7 +55,7 @@ public: ...@@ -55,7 +55,7 @@ public:
if (!os::fopen_s(&_fd, fname, mode)) if (!os::fopen_s(&_fd, fname, mode))
return; 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); throw spdlog_ex("Failed opening file " + os::filename_to_str(_filename) + " for writing", errno);
......
...@@ -44,7 +44,7 @@ public: ...@@ -44,7 +44,7 @@ public:
int retry_count = 0; int retry_count = 0;
while ((ret == -11/*EAGAIN*/) && (retry_count < SPDLOG_ANDROID_RETRIES)) 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); ret = __android_log_write(priority, _tag.c_str(), msg_output);
retry_count++; retry_count++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment