Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / rgw / rgw_client_io.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <stdarg.h>
7
8 #include "rgw_client_io.h"
9 #include "rgw_crypt.h"
10 #include "rgw_crypt_sanitize.h"
11 #define dout_subsys ceph_subsys_rgw
12
13 namespace rgw {
14 namespace io {
15
16 void BasicClient::init(CephContext *cct) {
17   init_env(cct);
18
19   if (cct->_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
20     const auto& env_map = get_env().get_map();
21
22     for (const auto& iter: env_map) {
23       rgw::crypt_sanitize::env x{iter.first, iter.second};
24       ldout(cct, 20) << iter.first << "=" << (x) << dendl;
25     }
26   }
27 }
28
29 } /* namespace io */
30 } /* namespace rgw */