forked from lix-project/lix
Replace invalid characters in json logger
Fixes #5159 Signed-off-by: Yaroslav Bolyukin <iam@lach.pw>
This commit is contained in:
parent
7a54b10a8a
commit
bbb3bcb165
|
@ -163,7 +163,7 @@ struct JSONLogger : Logger {
|
||||||
|
|
||||||
void write(const nlohmann::json & json)
|
void write(const nlohmann::json & json)
|
||||||
{
|
{
|
||||||
prevLogger.log(lvlError, "@nix " + json.dump());
|
prevLogger.log(lvlError, "@nix " + json.dump(-1, ' ', false, nlohmann::json::error_handler_t::replace));
|
||||||
}
|
}
|
||||||
|
|
||||||
void log(Verbosity lvl, const FormatOrString & fs) override
|
void log(Verbosity lvl, const FormatOrString & fs) override
|
||||||
|
|
Loading…
Reference in a new issue