Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
aeaddbad
Commit
aeaddbad
authored
Feb 22, 2017
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up logging in test_multiplexer
parent
e35497bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
libcaf_io/src/test_multiplexer.cpp
libcaf_io/src/test_multiplexer.cpp
+2
-4
No files found.
libcaf_io/src/test_multiplexer.cpp
View file @
aeaddbad
...
...
@@ -52,7 +52,7 @@ test_multiplexer::~test_multiplexer() {
expected
<
connection_handle
>
test_multiplexer
::
new_tcp_scribe
(
const
std
::
string
&
host
,
uint16_t
port_hint
)
{
CAF_LOG_DEBUG
(
"new tcp scribe "
<<
CAF_ARG
(
host
)
<<
CAF_ARG
(
port_hint
));
// DELME
CAF_LOG_TRACE
(
CAF_ARG
(
host
)
<<
CAF_ARG
(
port_hint
));
guard_type
guard
{
mx_
};
connection_handle
result
;
auto
i
=
scribes_
.
find
(
std
::
make_pair
(
host
,
port_hint
));
...
...
@@ -66,7 +66,6 @@ CAF_LOG_DEBUG("new tcp scribe " << CAF_ARG(host) << CAF_ARG(port_hint)); // DELM
expected
<
void
>
test_multiplexer
::
assign_tcp_scribe
(
abstract_broker
*
ptr
,
connection_handle
hdl
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
hdl
));
CAF_LOG_DEBUG
(
"assign tcp scribe "
<<
CAF_ARG
(
hdl
));
// DELME
class
impl
:
public
scribe
{
public:
impl
(
abstract_broker
*
self
,
connection_handle
ch
,
test_multiplexer
*
mpx
)
...
...
@@ -136,7 +135,7 @@ connection_handle test_multiplexer::add_tcp_scribe(abstract_broker*,
expected
<
connection_handle
>
test_multiplexer
::
add_tcp_scribe
(
abstract_broker
*
ptr
,
const
std
::
string
&
host
,
uint16_t
desired_port
)
{
CAF_LOG_
DEBUG
(
"add tcp scribe "
<<
CAF_ARG
(
host
)
<<
CAF_ARG
(
desired_port
));
// DELME
CAF_LOG_
TRACE
(
CAF_ARG
(
host
)
<<
CAF_ARG
(
desired_port
));
auto
hdl
=
new_tcp_scribe
(
host
,
desired_port
);
if
(
!
hdl
)
return
std
::
move
(
hdl
.
error
());
...
...
@@ -240,7 +239,6 @@ void test_multiplexer::run() {
void
test_multiplexer
::
provide_scribe
(
std
::
string
host
,
uint16_t
desired_port
,
connection_handle
hdl
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
host
)
<<
CAF_ARG
(
desired_port
)
<<
CAF_ARG
(
hdl
));
CAF_LOG_DEBUG
(
CAF_ARG
(
host
)
<<
CAF_ARG
(
desired_port
)
<<
CAF_ARG
(
hdl
));
// DELME
guard_type
guard
{
mx_
};
scribes_
.
emplace
(
std
::
make_pair
(
std
::
move
(
host
),
desired_port
),
hdl
);
}
...
...
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