Skip to content

Commit

Permalink
Merge pull request #13481 from theanalyst/rgw/env-dout
Browse files Browse the repository at this point in the history
rgw: don't log the env_map twice

Reviewed-by: Casey Bodley <cbodley@redhat.com>
  • Loading branch information
cbodley committed Mar 20, 2017
2 parents 8af0e58 + f015186 commit 75be7ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/rgw/rgw_client_io.cc
Expand Up @@ -16,11 +16,10 @@ void BasicClient::init(CephContext *cct) {
init_env(cct);

if (cct->_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
std::map<string, string, ltstr_nocase>& env_map = get_env().get_map();
std::map<string, string, ltstr_nocase>::iterator iter;
const auto& env_map = get_env().get_map();

for (iter = env_map.begin(); iter != env_map.end(); ++iter) {
ldout(cct, 20) << iter->first << "=" << iter->second << dendl;
for (const auto& iter: env_map) {
ldout(cct, 20) << iter.first << "=" << iter.second << dendl;
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/rgw/rgw_env.cc
Expand Up @@ -19,8 +19,6 @@ void RGWEnv::init(CephContext *cct)
void RGWEnv::set(const boost::string_ref& name, const boost::string_ref& val)
{
env_map[std::string{name}] = std::string{val};

dout(20) << "RGWEnv::set(): " << name << ": " << val << dendl;
}

void RGWEnv::init(CephContext *cct, char **envp)
Expand Down

0 comments on commit 75be7ea

Please sign in to comment.