diff options
| author | toufic ar <contact@toufy.me> | 2026-09-10 02:26:00 +0300 |
|---|---|---|
| committer | toufic ar <contact@toufy.me> | 2026-09-10 02:26:00 +0300 |
| commit | 287d014535e446662255bc1640d5b7962963f8f8 (patch) | |
| tree | 93588d53c518e98492c64ccdd530e35e70bffb16 /adonis/autopush/default.nix | |
| parent | 63ad298cc129fa370c7aea56daa4527d4876a91c (diff) | |
| download | servers-287d014535e446662255bc1640d5b7962963f8f8.tar.gz servers-287d014535e446662255bc1640d5b7962963f8f8.zip | |
autopush logging
Diffstat (limited to 'adonis/autopush/default.nix')
| -rw-r--r-- | adonis/autopush/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/adonis/autopush/default.nix b/adonis/autopush/default.nix index 5ee9c02..292abaf 100644 --- a/adonis/autopush/default.nix +++ b/adonis/autopush/default.nix @@ -20,7 +20,15 @@ in { enable = true; port = redisPort; }; - systemd.services = { + systemd.services = let + logLevel = "info"; + rustLog = + "autopush=${logLevel}," + + "autopush_common=${logLevel}," + + "autoendpoint=${logLevel}," + + "autoconnect=${logLevel}," + + "slog_mozlog_json=info,warn"; + in { autopush-autoconnect = { environment = { AUTOCONNECT__DB_DSN = "redis://127.0.0.1:${builtins.toString redisPort}"; @@ -28,6 +36,7 @@ in { AUTOCONNECT__ENDPOINT_HOSTNAME = "updates.${domain}"; AUTOCONNECT__ENDPOINT_PORT = builtins.toString endpointPort; AUTOCONNECT__ROUTER_HOSTNAME = "127.0.0.1"; + RUST_LOG = rustLog; }; wantedBy = ["multi-user.target"]; serviceConfig = { @@ -42,6 +51,7 @@ in { AUTOEND__PORT = builtins.toString port; AUTOEND__ENDPOINT_URL = "https://updates.${domain}"; AUTOEND__HUMAN_LOGS = "true"; + RUST_LOG = rustLog; }; wantedBy = ["multi-user.target"]; serviceConfig = { |
