Iām using CODE for ARM64 on a server that can go by two different domains. CODE doesnāt work on one of these domains, and as such, it spams my error log saying the following:
"exception":{},"CustomMessage":"Failed to fetch the Collabora capabilities endpoint: cURL error 6: Could not resolve host: aqua.local (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://aqua.local/nextcloud/apps/richdocumentscode_arm64/proxy.php?req=/hosting/capabilities"
While it would be nice for CODE to work on both of my domains, Iām more concerned with the way this message is constantly writing multiple times a second, all day. I want to suppress this without disabling error logging for the rest of Nextcloud.
Any suggestions?
I used to get an annoying error logged similarly quickly and used to run a sed on a cron job every minute to remove the offending āDeprecated eventā entries. It wonāt stop your āliveā log being cluttered, but it makes the nextcloud log readable again and stops it growing to unwieldy proportions. Mine was;
* * * * * /usr/bin/sed -i '/Deprecated\ event\ type\ for/d' /var/log/nextcloud/nextcloud.log
Yours would be to add the following job into rootās cronjobs;
* * * * * /usr/bin/sed -i '/Failed\ to\ fetch\ the\ Collabora\ capabilities\ endpoint/d' /var/log/nextcloud/nextcloud.log
Which will clean up your logs every 60 seconds⦠Tweak the sed command if itās not working as stated.
Thanks for the suggestion. For now, Iāve just simply set the log level to 4 and reduce it if I feel like I need to check something.