mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 11:55:51 +00:00
fix: Fix default severity in Logger (#2449)
This commit is contained in:
@@ -242,7 +242,7 @@ private:
|
||||
class LogService {
|
||||
struct Data {
|
||||
bool isAsync;
|
||||
Severity severity;
|
||||
Severity defaultSeverity;
|
||||
std::vector<std::shared_ptr<spdlog::sinks::sink>> allSinks;
|
||||
};
|
||||
|
||||
@@ -252,7 +252,7 @@ private:
|
||||
static Data data;
|
||||
|
||||
static std::shared_ptr<spdlog::logger>
|
||||
registerLogger(std::string const& channel, Severity severity = data.severity);
|
||||
registerLogger(std::string const& channel, Severity severity = data.defaultSeverity);
|
||||
|
||||
public:
|
||||
LogService() = delete;
|
||||
|
||||
Reference in New Issue
Block a user