Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xio: provide dout_prefix for XioConnection #9444

Merged
merged 1 commit into from Nov 3, 2016
Merged

Conversation

Adirl
Copy link

@Adirl Adirl commented Jun 2, 2016

provide dout_prefix for XioConnection with: from>>to, peer-type, and conn/sess

  1. this prefix will be added for any log message from XioConnection
    (2. hence, remove info that is now redundeant in few existing log messages)

Signed-off-by: Avner BenHanoch avnerb@mellanox.com

@@ -77,6 +77,14 @@ void print_ceph_msg(CephContext *cct, const char *tag, Message *m)
}
}

#undef dout_prefix
#define dout_prefix _conn_prefix(_dout)
ostream& XioConnection::_conn_prefix(std::ostream *_dout) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this method need to have a leading _ in the name? I'd like to avoid that, if possible.

@avnerbh
Copy link
Contributor

avnerbh commented Jun 2, 2016

I only copied this format from AsyncMessneger

#undef dout_prefix
#define dout_prefix _conn_prefix(_dout)
ostream& AsyncConnection::_conn_prefix(std::ostream *_dout) {

i have no problem to remove the leading _ here

@mattbenjamin mattbenjamin self-assigned this Jun 2, 2016
@cbodley cbodley added the rdma label Jun 2, 2016
@Adirl
Copy link
Author

Adirl commented Jun 13, 2016

@mattbenjamin Anything else needed here? do you us to change leading _ in the name?
@avnerbh

Thanks

… and conn/sess

1. this prefix will be added for any log message from XioConnection
(2. hence, remove info that is now redundeant in few existing log messages)

Signed-off-by: Avner BenHanoch <avnerb@mellanox.com>
@Adirl
Copy link
Author

Adirl commented Jun 22, 2016

@mattbenjamin @avnerbh
leading underscore fixed

@cbodley
Copy link
Contributor

cbodley commented Jun 22, 2016

👍

@Adirl
Copy link
Author

Adirl commented Jul 7, 2016

@mattbenjamin , anything else needed here?

@avnerbh
Copy link
Contributor

avnerbh commented Sep 1, 2016

@mattbenjamin can we progress with this issue?

@liewegas
Copy link
Member

liewegas commented Nov 3, 2016

retest this please

@liewegas liewegas added this to the kraken milestone Nov 3, 2016
@liewegas liewegas merged commit ccfc644 into ceph:master Nov 3, 2016
@Adirl Adirl deleted the dout_prefix branch April 18, 2017 18:12
@Adirl Adirl restored the dout_prefix branch March 2, 2018 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants