diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /src/rgw/rgw_client_io.cc | |
parent | Initial commit. (diff) | |
download | ceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/rgw/rgw_client_io.cc')
-rw-r--r-- | src/rgw/rgw_client_io.cc | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/rgw/rgw_client_io.cc b/src/rgw/rgw_client_io.cc new file mode 100644 index 000000000..ed0925093 --- /dev/null +++ b/src/rgw/rgw_client_io.cc @@ -0,0 +1,34 @@ +// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- +// vim: ts=8 sw=2 smarttab ft=cpp + +#include <stdio.h> +#include <stdlib.h> +#include <stdarg.h> + +#include "rgw_client_io.h" +#include "rgw_crypt.h" +#include "rgw_crypt_sanitize.h" +#define dout_subsys ceph_subsys_rgw + +namespace rgw { +namespace io { + +[[nodiscard]] int BasicClient::init(CephContext *cct) { + int init_error = init_env(cct); + + if (init_error != 0) + return init_error; + + if (cct->_conf->subsys.should_gather<ceph_subsys_rgw, 20>()) { + const auto& env_map = get_env().get_map(); + + for (const auto& iter: env_map) { + rgw::crypt_sanitize::env x{iter.first, iter.second}; + ldout(cct, 20) << iter.first << "=" << (x) << dendl; + } + } + return init_error; +} + +} /* namespace io */ +} /* namespace rgw */ |