Skip to content

Commit e9848a3

Browse files
cleptriclucas-zimerman
authored andcommitted
php: Recommend calling flush for long running CLI tasks (#14468)
1 parent 08c493c commit e9848a3

File tree

1 file changed

+3
-0
lines changed
  • platform-includes/logs/usage

1 file changed

+3
-0
lines changed

platform-includes/logs/usage/php.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ You can pass additional attributes directly to the logging functions. These prop
1717
// Somewhere at the end of your execution, you should flush the logger to send pending logs to Sentry.
1818
\Sentry\logger()->flush();
1919
```
20+
21+
If you are using logs in long running CLI tasks, we recommend periodically calling `\Sentry\logger()->flush()` to keep memory pressure low and avoid any logs being discarded to due size-limits.
22+

0 commit comments

Comments
 (0)