split tracing from verbose logging options for nextcloud
This commit is contained in:
parent
318c54e7d3
commit
0bdbb975af
1 changed files with 10 additions and 3 deletions
|
@ -49,7 +49,14 @@ in
|
||||||
|
|
||||||
debug = lib.mkOption {
|
debug = lib.mkOption {
|
||||||
type = lib.types.bool;
|
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;
|
default = false;
|
||||||
example = true;
|
example = true;
|
||||||
};
|
};
|
||||||
|
@ -141,14 +148,14 @@ in
|
||||||
"redis.session.locking_enabled" = "1";
|
"redis.session.locking_enabled" = "1";
|
||||||
"redis.session.lock_retries" = "-1";
|
"redis.session.lock_retries" = "-1";
|
||||||
"redis.session.lock_wait_time" = "10000";
|
"redis.session.lock_wait_time" = "10000";
|
||||||
} // lib.optionalAttrs cfg.debug {
|
} // lib.optionalAttrs cfg.tracing {
|
||||||
# "xdebug.remote_enable" = "on";
|
# "xdebug.remote_enable" = "on";
|
||||||
# "xdebug.remote_host" = "127.0.0.1";
|
# "xdebug.remote_host" = "127.0.0.1";
|
||||||
# "xdebug.remote_port" = "9000";
|
# "xdebug.remote_port" = "9000";
|
||||||
# "xdebug.remote_handler" = "dbgp";
|
# "xdebug.remote_handler" = "dbgp";
|
||||||
"xdebug.trigger_value" = "debug_me";
|
"xdebug.trigger_value" = "debug_me";
|
||||||
|
|
||||||
"xdebug.mode" = "profile";
|
"xdebug.mode" = "profile,trace";
|
||||||
"xdebug.output_dir" = "/var/log/xdebug";
|
"xdebug.output_dir" = "/var/log/xdebug";
|
||||||
"xdebug.start_with_request" = "trigger";
|
"xdebug.start_with_request" = "trigger";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue