feat: add debug-level per-op, session and link metrics

This commit is contained in:
randogoth 2026-09-29 09:43:28 +03:00
parent 0ba9f32837
commit 07f064460f
5 changed files with 76 additions and 0 deletions

View file

@ -220,6 +220,15 @@
description = "Open the configured TCP port in the firewall.";
};
verbose = mkOption {
type = types.bool;
default = false;
description = ''
Enable debug-level logging (--verbose): per-op timing,
session summaries and RNS link events on both carriers.
'';
};
rns = {
enable = mkEnableOption "the RNS carrier alongside TCP (needs an rns-built package)";
@ -333,6 +342,8 @@
''}
${lib.optionalString (cfg.rns.enable && cfg.rns.udpForward != null)
''args+=(--rns-udp-forward ${lib.escapeShellArg cfg.rns.udpForward})''}
${lib.optionalString cfg.verbose
''args+=(--verbose)''}
${lib.optionalString (cfg.inviteToken != null)
''args+=(--invite-token ${lib.escapeShellArg cfg.inviteToken})''}
${lib.optionalString (cfg.inviteTokenFile != null)