From 66918a17f6e1e6c334aef73485b351ff1dc35c33 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 15 Nov 2021 10:34:20 +0100 Subject: [PATCH] Document how to override the log level with occ Signed-off-by: Christoph Wurst --- .../configuration_server/logging_configuration.rst | 7 ++++++- admin_manual/configuration_server/occ_command.rst | 10 ++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/admin_manual/configuration_server/logging_configuration.rst b/admin_manual/configuration_server/logging_configuration.rst index 0bf6d3802..e8e773446 100644 --- a/admin_manual/configuration_server/logging_configuration.rst +++ b/admin_manual/configuration_server/logging_configuration.rst @@ -147,4 +147,9 @@ If required, the name and path of the audit log file can be customized by using Find detailed documentation on auditable events for enterprises in our `customer portal `_. -.. _PHP date function: http://www.php.net/manual/en/function.date.php \ No newline at end of file +.. _PHP date function: http://www.php.net/manual/en/function.date.php + +Temporary overrides +------------------- + +You can run override the config.php log level of ``occ`` commands with as :ref:`documented here`. diff --git a/admin_manual/configuration_server/occ_command.rst b/admin_manual/configuration_server/occ_command.rst index 34cd62600..e827f70f2 100644 --- a/admin_manual/configuration_server/occ_command.rst +++ b/admin_manual/configuration_server/occ_command.rst @@ -40,6 +40,7 @@ occ command Directory * :ref:`command_line_upgrade_label` * :ref:`two_factor_auth_label` * :ref:`disable_user_label` +* `Debugging`_ .. _http_user_label: @@ -1467,3 +1468,12 @@ Use the following command to enable the user again:: sudo -u www-data php occ user:enable Note that once users are disabled, their connected browsers will be disconnected. + +.. _occ_debugging: + +Debugging +--------- + +In certain situations it's necessary to generate debugging information, e.g. before submitting a bug report. You can run ``occ`` with debug logging:: + + sudo -u www-data NC_loglevel=0 php occ -h