mirror of
https://codeberg.org/icewind/log-normalizer.git
synced 2026-11-30 10:30:47 +01:00
This commit is contained in:
parent
8cdb5e4548
commit
8c8a1bc303
1 changed files with 6 additions and 0 deletions
|
|
@ -25,6 +25,11 @@ in {
|
||||||
description = "file containg RAW_DATABASE_URL variable";
|
description = "file containg RAW_DATABASE_URL variable";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
logDirectory = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
description = "path containing the raw logs";
|
||||||
|
};
|
||||||
|
|
||||||
logLevel = mkOption {
|
logLevel = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "info,sqlx=warn";
|
default = "info,sqlx=warn";
|
||||||
|
|
@ -42,6 +47,7 @@ in {
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
environment = {
|
environment = {
|
||||||
RUST_LOG = cfg.logLevel;
|
RUST_LOG = cfg.logLevel;
|
||||||
|
LOG_DIRECTORY = cfg.logDirectory;
|
||||||
};
|
};
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue