Skip to content

Commit abc5ac7

Browse files
committed
Fixed windows build: #151
1 parent 07fd9ba commit abc5ac7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

knp/base-framework/impl/logging.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Level str_to_level(std::string_view str)
7878
return none;
7979
}
8080
if (str == "none") return none;
81-
const auto level = spdlog::level::from_str(str.begin());
81+
const auto level = spdlog::level::from_str(std::string(str));
8282
if (level == spdlog::level::off)
8383
{
8484
SPDLOG_ERROR("Could not convert string to level.");

0 commit comments

Comments
 (0)