summaryrefslogtreecommitdiffstats
path: root/lib/private/Support
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/private/Support
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/private/Support')
-rw-r--r--lib/private/Support/CrashReport/Registry.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Support/CrashReport/Registry.php b/lib/private/Support/CrashReport/Registry.php
index 472f39c2884..f5457f60ad4 100644
--- a/lib/private/Support/CrashReport/Registry.php
+++ b/lib/private/Support/CrashReport/Registry.php
@@ -147,4 +147,8 @@ class Registry implements IRegistry {
}
}
}
+
+ public function hasReporters(): bool {
+ return !empty($this->lazyReporters) || !empty($this->reporters);
+ }
}