Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
357a63d9
Commit
357a63d9
authored
Jan 11, 2018
by
Joao Moreno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix spdlog namespace
parent
a9380451
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
async_log_helper.h
include/spdlog/details/async_log_helper.h
+2
-2
file_helper.h
include/spdlog/details/file_helper.h
+2
-2
android_sink.h
include/spdlog/sinks/android_sink.h
+1
-1
No files found.
include/spdlog/details/async_log_helper.h
View file @
357a63d9
...
...
@@ -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
...
...
include/spdlog/details/file_helper.h
View file @
357a63d9
...
...
@@ -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
);
...
...
@@ -129,7 +129,7 @@ public:
if
(
ext_index
==
filename_t
::
npos
||
ext_index
==
0
||
ext_index
==
fname
.
size
()
-
1
)
return
std
::
make_tuple
(
fname
,
spdlog
::
filename_t
());
// treat casese like "/etc/rc.d/somelogfile or "/abc/.hiddenfile"
// treat casese like "/etc/rc.d/somelogfile or "/abc/.hiddenfile"
auto
folder_index
=
fname
.
rfind
(
details
::
os
::
folder_sep
);
if
(
folder_index
!=
fname
.
npos
&&
folder_index
>=
ext_index
-
1
)
return
std
::
make_tuple
(
fname
,
spdlog
::
filename_t
());
...
...
include/spdlog/sinks/android_sink.h
View file @
357a63d9
...
...
@@ -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
++
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment