Skip to content

fix(core): log swallowed errors in connection drivers and folders storage (#272) - #289

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/272-silent-catch-logging
Jul 10, 2026
Merged

fix(core): log swallowed errors in connection drivers and folders storage (#272)#289
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/272-silent-catch-logging

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Replace silent catch (_) {} in Postgres/MySQL/SQLite/Redis disconnect and forceClose with debugPrint so close failures are visible in logs.
  • Log Postgres stats probe failures (pg_postmaster_start_time, pg_database_size) instead of returning partial stats silently.
  • Log FoldersStorage.load and legacy migration errors instead of swallowing them.

Fixes #272.

Test plan

  • flutter test test/core/database/postgres_connection_test.dart test/core/database/mysql_connection_test.dart test/core/database/sqlite_connection_test.dart test/core/database/redis_connection_test.dart
  • Trigger a disconnect failure or stats permission error and confirm debugPrint output appears in console/log

…rage (#272)

Replace silent catch (_) {} blocks with debugPrint so disconnect failures,
stats probe errors, and folder load/migration issues are visible in logs.
@github-actions github-actions Bot added bug Something isn't working core Core library logic and services labels Jul 10, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 1eaea4a into dev Jul 10, 2026
4 checks passed
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Jul 12, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/272-silent-catch-logging branch July 26, 2026 14:39
ZhuchkaTriplesix added a commit that referenced this pull request Jul 27, 2026
fix(core): log swallowed errors in connection drivers and folders storage (#272)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core Core library logic and services

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant