From 7151dfb519ce4ed362d1b59600fdad37692b104f Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Thu, 7 Sep 2023 14:40:53 +0200 Subject: [PATCH] Update level list --- cpp/piscsi/piscsi_executor.cpp | 2 +- cpp/piscsi/piscsi_executor.h | 1 - cpp/piscsi/piscsi_response.h | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cpp/piscsi/piscsi_executor.cpp b/cpp/piscsi/piscsi_executor.cpp index a4cb8c5ad2..d0ed7257bd 100644 --- a/cpp/piscsi/piscsi_executor.cpp +++ b/cpp/piscsi/piscsi_executor.cpp @@ -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; } diff --git a/cpp/piscsi/piscsi_executor.h b/cpp/piscsi/piscsi_executor.h index e2b2c67194..5d765e0353 100644 --- a/cpp/piscsi/piscsi_executor.h +++ b/cpp/piscsi/piscsi_executor.h @@ -12,7 +12,6 @@ #include "shared/protobuf_serializer.h" #include "piscsi/piscsi_response.h" #include -#include class PiscsiImage; class DeviceFactory; diff --git a/cpp/piscsi/piscsi_response.h b/cpp/piscsi/piscsi_response.h index e559938551..dcabaca72b 100644 --- a/cpp/piscsi/piscsi_response.h +++ b/cpp/piscsi/piscsi_response.h @@ -46,7 +46,7 @@ class PiscsiResponse DeviceFactory device_factory; - static const inline array log_levels = { "trace", "debug", "info", "warn", "err", "off" }; + static const inline array log_levels = { "trace", "debug", "info", "warning", "error", "off" }; unique_ptr GetDeviceProperties(const Device&) const; void GetDevice(const Device&, PbDevice&, const string&) const;