Skip to content

fix: Log exceptions during fetching templates#5492

Open
juliusknorr wants to merge 2 commits intomainfrom
fix/template-loading
Open

fix: Log exceptions during fetching templates#5492
juliusknorr wants to merge 2 commits intomainfrom
fix/template-loading

Conversation

@juliusknorr
Copy link
Copy Markdown
Member

Signed-off-by: Julius Knorr jus@bitgrid.net

  • Resolves: #
  • Target version: main

Summary

TODO

  • ...

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Copy link
Copy Markdown
Member

@joshtrichards joshtrichards left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in SettingController make sense to me, but the TemplateManager ones seem like overkill (particularly if logged at WARN level).

Comment thread lib/TemplateManager.php
foreach ($files as $file) {
if ($file->getId() === $fileId) {
$this->logger->warning(
'DEBUG: found template in empty_templates dir: {fullPath} ({internalPath}) with permissions {permissions}, double-check is it readable: {isReadable}',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean for these to be included and/or logged at WARN level?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants