1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-28 21:21:00 +01:00

Add Setting<std::filesystem::path> specialization

Like PathSetting, this normalizes the path (without resolving
symlinks).
This commit is contained in:
Eelco Dolstra 2025-11-24 14:04:50 +01:00
parent 487c6b6c46
commit 93c51acfb5
4 changed files with 17 additions and 3 deletions

View file

@ -370,7 +370,7 @@ void applyJSONLogger()
if (!loggerSettings.jsonLogPath.get().empty()) {
try {
std::vector<std::unique_ptr<Logger>> loggers;
loggers.push_back(makeJSONLogger(std::filesystem::path(loggerSettings.jsonLogPath.get()), false));
loggers.push_back(makeJSONLogger(loggerSettings.jsonLogPath.get(), false));
try {
logger = makeTeeLogger(std::move(logger), std::move(loggers));
} catch (...) {