From 0bdbb975af805781f056fa390d77bda52f14e46d Mon Sep 17 00:00:00 2001 From: ibizaman Date: Sun, 17 Dec 2023 22:54:19 -0800 Subject: [PATCH] split tracing from verbose logging options for nextcloud --- modules/services/nextcloud-server.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/modules/services/nextcloud-server.nix b/modules/services/nextcloud-server.nix index dfe593b..bd18339 100644 --- a/modules/services/nextcloud-server.nix +++ b/modules/services/nextcloud-server.nix @@ -49,7 +49,14 @@ in debug = lib.mkOption { type = lib.types.bool; - description = "Enable more verbose logging and xdebug tracing."; + description = "Enable more verbose logging."; + default = false; + example = true; + }; + + tracing = lib.mkOption { + type = lib.types.bool; + description = "Enable xdebug tracing."; default = false; example = true; }; @@ -141,14 +148,14 @@ in "redis.session.locking_enabled" = "1"; "redis.session.lock_retries" = "-1"; "redis.session.lock_wait_time" = "10000"; - } // lib.optionalAttrs cfg.debug { + } // lib.optionalAttrs cfg.tracing { # "xdebug.remote_enable" = "on"; # "xdebug.remote_host" = "127.0.0.1"; # "xdebug.remote_port" = "9000"; # "xdebug.remote_handler" = "dbgp"; "xdebug.trigger_value" = "debug_me"; - "xdebug.mode" = "profile"; + "xdebug.mode" = "profile,trace"; "xdebug.output_dir" = "/var/log/xdebug"; "xdebug.start_with_request" = "trigger"; };