Skip to content

Commit

Permalink
Don't log exceptions until we can handle larger output payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed Feb 7, 2025
1 parent d1fada2 commit 8f09af1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/StaticCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ public function registerEventHandlers(): void
try {
$this->purgeTags(...$this->tagsToPurge);
} catch (\Throwable $e) {
Craft::$app->getErrorHandler()->logException($e);
// TODO: log exception once output payload isn't a concern
Craft::error('Failed to purge tags after request');
}
}
});
Expand Down

0 comments on commit 8f09af1

Please sign in to comment.