Skip to content

Fix: Optional Flow exception dump files for SentryStorage (storageLogging)#50

Open
Schuppel1 wants to merge 2 commits intoflownative:mainfrom
ahornlabs:fix/file-dump-and-sentry-storage
Open

Fix: Optional Flow exception dump files for SentryStorage (storageLogging)#50
Schuppel1 wants to merge 2 commits intoflownative:mainfrom
ahornlabs:fix/file-dump-and-sentry-storage

Conversation

@Schuppel1
Copy link

Problem

When using flownative/sentry as Neos.Flow.log.throwables.storageClass, throwables are reported to Sentry, but Flow/Neos no longer writes exception dump files to Data/Logs/Exceptions/*.txt. This breaks the developer experience (“For a full stacktrace, open …”) because the referenced file may not exist.

Solution

Flownative\Sentry\Log\SentryStorage now optionally writes Flow exception dump files by delegating to Neos\Flow\Log\ThrowableStorage\FileStorage, while still capturing the throwable to Sentry.

New setting (default: false)

Flownative:
  Sentry:
    storageLogging: false

Changes

Classes/Log/SentryStorage.php

  • Add optional FileStorage dump writing controlled by Flownative.Sentry.storageLogging
  • Keep Sentry capture (best-effort)

Configuration/Settings.yaml

  • Add storageLogging: false default

• README.md

  • Document storageLogging

Testing

• Configure SentryStorage as throwable storage and trigger an exception (storageLogging: true):

  1. Expected: Sentry event is created
  2. Expected (default): dump file is created under Data/Logs/Exceptions/*.txt
  3. Tested with no Sentry DSN

• Set storageLogging: false:

  1. Expected: Sentry event yes, dump file no
  2. Tested with no Sentry DSN

Environment

• PHP: 8.2
• flownative/sentry: 3.2.0
• sentry/sentry: ^4.0
• Neos Flow: 9.1

Introduce a nullable FileStorage property in SentryStorage and add a new Flownative.Sentry.storageLogging config (default: false). Update README to document that Flow exception dump files are kept in Data/Logs/Exceptions/*.txt by default and show how to disable that behavior with `Flownative:\n  Sentry:\n    storageLogging: false`.
@kdambekalns kdambekalns self-requested a review February 17, 2026 07:20
@kdambekalns
Copy link
Member

Thanks! I'll have a look!

I'll need to dig into my memory, but I would guess it wasn't an active decision to no longer write those files at all.

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