Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DetectorSoftware
libfsdetcore
Commits
2be7847b
Commit
2be7847b
authored
Aug 17, 2020
by
Yuelong Yu
Browse files
added additioanl info and bug fix
- bug fix on OUTPUT3 - added log info for timeout in ReceiveData
parent
549b58c0
Pipeline
#11174
passed with stage
in 1 minute and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Globals.cpp
View file @
2be7847b
...
@@ -99,7 +99,7 @@ namespace FSDetCoreNS
...
@@ -99,7 +99,7 @@ namespace FSDetCoreNS
void
OUTPUT3
(
string
strMsg
)
void
OUTPUT3
(
string
strMsg
)
{
{
if
(
DEBUG
>=
USER_LOG_LEVEL
)
if
(
INFO
>=
USER_LOG_LEVEL
)
{
{
std
::
lock_guard
<
std
::
mutex
>
mtx
(
log_mutex
);
std
::
lock_guard
<
std
::
mutex
>
mtx
(
log_mutex
);
auto
time_now
=
std
::
chrono
::
system_clock
::
to_time_t
(
std
::
chrono
::
system_clock
::
now
());
auto
time_now
=
std
::
chrono
::
system_clock
::
to_time_t
(
std
::
chrono
::
system_clock
::
now
());
...
...
src/NetworkImplementation.cpp
View file @
2be7847b
...
@@ -299,6 +299,7 @@ namespace FSDetCoreNS
...
@@ -299,6 +299,7 @@ namespace FSDetCoreNS
else
{
else
{
nTry
++
;
nTry
++
;
if
(
nTry
>
nMaxTries
)
{
if
(
nTry
>
nMaxTries
)
{
LOG_STREAM
(
__FUNCTION__
,
INFO
,
"retry exceeds:"
+
to_string
(
nMaxTries
)
+
"- received: "
+
to_string
(
nTotalReceived
));
return
-
1
;
return
-
1
;
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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