Log the execution time

This commit is contained in:
Michael 2022-05-17 20:47:23 +00:00
commit 4016a576d5
27 changed files with 67 additions and 6 deletions

View file

@ -158,6 +158,7 @@ function photos_post(App $a)
if (!$can_post) {
notice(DI::l10n()->t('Permission denied.'));
DI::page()->logRuntime();
exit();
}
@ -166,6 +167,7 @@ function photos_post(App $a)
if (!$owner_record) {
notice(DI::l10n()->t('Contact information unavailable'));
DI::logger()->info('photos_post: unable to locate contact record for page owner. uid=' . $page_owner_uid);
DI::page()->logRuntime();
exit();
}