Skip to content

Commit

Permalink
Update level list
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Sep 7, 2023
1 parent 243a96f commit 7151dfb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cpp/piscsi/piscsi_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ bool PiscsiExecutor::SetLogLevel(const string& log_level) const
const level::level_enum l = level::from_str(level);
// Compensate for spdlog using 'off' for unknown levels
if (to_string_view(l) != level) {
spdlog::warn("Invalid log level '" + level +"'");
spdlog::warn("Invalid log level '" + level + "'");
return false;
}

Expand Down
1 change: 0 additions & 1 deletion cpp/piscsi/piscsi_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "shared/protobuf_serializer.h"
#include "piscsi/piscsi_response.h"
#include <unordered_set>
#include <unordered_map>

class PiscsiImage;
class DeviceFactory;
Expand Down
2 changes: 1 addition & 1 deletion cpp/piscsi/piscsi_response.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class PiscsiResponse

DeviceFactory device_factory;

static const inline array<string, 6> log_levels = { "trace", "debug", "info", "warn", "err", "off" };
static const inline array<string, 6> log_levels = { "trace", "debug", "info", "warning", "error", "off" };

unique_ptr<PbDeviceProperties> GetDeviceProperties(const Device&) const;
void GetDevice(const Device&, PbDevice&, const string&) const;
Expand Down

0 comments on commit 7151dfb

Please sign in to comment.