aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-01-03 19:03:57 +0100
committerJulius Härtl <jus@bitgrid.net>2023-01-16 09:47:31 +0100
commit00b7575c89815aa218e7e3ed3d61b25ee65f244f (patch)
tree002f0cc4ee86cb2c79eb8c8c089cbcba6c9511ac /lib/public
parent5e090d044d3d660316450c3d4d2d7bfc3bde20dd (diff)
downloadnextcloud-server-00b7575c89815aa218e7e3ed3d61b25ee65f244f.tar.gz
nextcloud-server-00b7575c89815aa218e7e3ed3d61b25ee65f244f.zip
perf(logging): Return early when log level does not match before serializing an exception
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Support/CrashReport/IRegistry.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/Support/CrashReport/IRegistry.php b/lib/public/Support/CrashReport/IRegistry.php
index 6ee2b57f613..35cf78920da 100644
--- a/lib/public/Support/CrashReport/IRegistry.php
+++ b/lib/public/Support/CrashReport/IRegistry.php
@@ -81,4 +81,13 @@ interface IRegistry {
* @since 17.0.0
*/
public function delegateMessage(string $message, array $context = []): void;
+
+ /**
+ * Check if any reporter has been registered to delegate to
+ *
+ * @return bool
+ * @deprecated use internally only
+ * @since 26.0.0
+ */
+ public function hasReporters(): bool;
}