From 5fb5054d6448261a07f20937991d598ed3b0649e Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 9 Sep 2024 00:04:19 -0600 Subject: [PATCH] Add logging --- app/Jobs/MovePipeline/ProcessMovePipeline.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Jobs/MovePipeline/ProcessMovePipeline.php b/app/Jobs/MovePipeline/ProcessMovePipeline.php index 9a62022fb..1401f4873 100644 --- a/app/Jobs/MovePipeline/ProcessMovePipeline.php +++ b/app/Jobs/MovePipeline/ProcessMovePipeline.php @@ -70,14 +70,17 @@ class ProcessMovePipeline implements ShouldQueue public function handle(): void { if (config('app.env') !== 'production' || (bool) config_cache('federation.activitypub.enabled') == false) { + Log::info('pmp: AP not enabled'); throw new Exception('Activitypub not enabled'); } if (! self::checkTarget()) { + Log::info('pmp: invalid target'); throw new Exception('Invalid target'); } if (! self::checkActor()) { + Log::info('pmp: invalid actor'); throw new Exception('Invalid actor'); } return;