From c53d48384ab41b6d281b5b67af4151ab7c1b0d00 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Tue, 15 Oct 2024 23:21:29 +0200 Subject: [PATCH] nextcloud: document how to get debugging logs --- docs/nextcloud.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docs/nextcloud.md diff --git a/docs/nextcloud.md b/docs/nextcloud.md new file mode 100644 index 00000000..309b2fc2 --- /dev/null +++ b/docs/nextcloud.md @@ -0,0 +1,19 @@ +# Nextcloud debugging + +Set loglevel to `0` for debug logs: + +```nix +services.nextcloud.settings.loglevel = 0; +``` + +Then, logs appear in the `phpfpm-nextcloud.service` logs: + +```bash +sudo journalctl -fu phpfpm-nextcloud +``` + +Make sure to set the loglevel back to the default `2` warning after debugging: + +```nix +services.nextcloud.settings.loglevel = 2; +```