浏览代码

Add logging

Daniel Supernault 10 月之前
父节点
当前提交
5fb5054d64
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/Jobs/MovePipeline/ProcessMovePipeline.php

+ 3 - 0
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;