Skip to content

Commit

Permalink
Address comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
bekadavis9 committed Jun 6, 2024
1 parent 70fbaa3 commit b402392
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tiledb/sm/storage_manager/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ using namespace tiledb::common;

namespace tiledb::sm {

class ContextException : public StatusException {
public:
explicit ContextException(const std::string& message)
: StatusException("Context", message) {
}
};

static common::Logger::Level get_log_level(const Config& config);

/* ****************************** */
Expand Down Expand Up @@ -234,7 +241,7 @@ void Context::init_loggers(const Config& config) {
throw_if_not_ok(config.get<uint32_t>("config.logging_level", &level, &found));
assert(found);
if (level > static_cast<unsigned int>(Logger::Level::TRACE)) {
throw std::invalid_argument(
throw ContextException(
"Cannot set logger level; Unsupported level:" + std::to_string(level) +
"set in configuration");
}
Expand Down

0 comments on commit b402392

Please sign in to comment.