Skip to content

Commit

Permalink
nixos/garage: allow all available log levels in cfg.logLevel
Browse files Browse the repository at this point in the history
`error` and `warn` have always been valid log levels.
But because the upstream docs never mentioned those, we simply didn't
add them to the enum of our module option.

The upstream docs have been updated and now mention `error` and `warn`
as well.

Upstream PR: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/716
  • Loading branch information
emilylange committed Feb 13, 2024
1 parent 4ee7522 commit 993083f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/web-servers/garage.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ in
};

logLevel = mkOption {
type = types.enum ([ "info" "debug" "trace" ]);
type = types.enum ([ "error" "warn" "info" "debug" "trace" ]);
default = "info";
example = "debug";
description = lib.mdDoc "Garage log level, see <https://garagehq.deuxfleurs.fr/documentation/quick-start/#launching-the-garage-server> for examples.";
Expand Down

0 comments on commit 993083f

Please sign in to comment.