Skip to content

Commit

Permalink
rabbit_khepri: Add debug logs in khepri_db enable callback
Browse files Browse the repository at this point in the history
Without these there is no indication of unregistering and registering
projections.
  • Loading branch information
the-mikedavis committed Sep 10, 2024
1 parent b992bc0 commit 2e7f149
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deps/rabbit/src/rabbit_khepri.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,15 @@ get_feature_state(Node) ->
khepri_db_migration_enable(#{feature_name := FeatureName}) ->
maybe
ok ?= sync_cluster_membership_from_mnesia(FeatureName),
?LOG_INFO(
"Feature flag `~s`: unregistering legacy projections",
[FeatureName],
#{domain => ?RMQLOG_DOMAIN_DB}),
ok ?= unregister_legacy_projections(),
?LOG_INFO(
"Feature flag `~s`: registering projections",
[FeatureName],
#{domain => ?RMQLOG_DOMAIN_DB}),
ok ?= register_projections(),
migrate_mnesia_tables(FeatureName)
end.
Expand Down

0 comments on commit 2e7f149

Please sign in to comment.