Skip to content

Breadcrumbs during a crash, the logger on a refused init, missing storage file errors - #321

Merged
arifBurakDemiray merged 1 commit into
sdk-behavior-settingsfrom
sbs-small-core-fixes
Oct 22, 2026
Merged

arifBurakDemiray merged 1 commit into
sdk-behavior-settingsfrom
sbs-small-core-fixes

Conversation

@arifBurakDemiray

Copy link
Copy Markdown
Member

Three small fixes reported while finishing SBS. Based on sdk-behavior-settings, as SBS rewrote the same code.

Area Before After
Breadcrumbs A breadcrumb added while an unhandled crash was being recorded on another thread could be lost, as the list was not synchronized The list is guarded by itself
Second init A refused second init given the same InternalConfig swapped the running SDK's logger The logger is set only after the init twice check
Storage reads Every fresh init logged a missing timed events file at ERROR level, which log gathering then uploads A missing file is logged at debug level; a file that exists but cannot be opened is logged as an error

Tests

  • New: ModuleCrashesTests (breadcrumbs added while another thread records crashes), CoreRobustnessTests (missing file level, unopenable file, second init logger).
  • Each new test fails with its fix reverted.
  • Full suite: 721 of 721 on JDK 8.

🤖 Generated with Claude Code

…missing files

- The breadcrumb list is guarded, so one added while a crash is recorded on
  another thread is not lost.
- A refused second init no longer replaces the running SDK's logger.
- A missing storage file is logged at debug level, one that cannot be opened
  as an error.
@arifBurakDemiray
arifBurakDemiray marked this pull request as ready for review October 22, 2026 15:58
@arifBurakDemiray
arifBurakDemiray merged commit 0e5896e into sdk-behavior-settings Oct 22, 2026
4 of 5 checks passed
@arifBurakDemiray
arifBurakDemiray deleted the sbs-small-core-fixes branch October 22, 2026 15:58
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.

1 participant