Skip to content

Commit

Permalink
Refactor SpinifySubscriptionMixin to use specific implementation clas…
Browse files Browse the repository at this point in the history
…ses for client and server subscriptions
  • Loading branch information
PlugFox committed Jun 12, 2024
1 parent 6ba54bd commit 1735d95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/subscription_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ abstract base class SpinifySubscriptionBase implements SpinifySubscription {
}
_logger?.call(
const SpinifyLogLevel.debug(),
'channel_event_received',
'Channel event received',
'subscription_event_received',
'Subscription "$channel" received ${event.type} event',
<String, Object?>{
'channel': channel,
'subscription': this,
Expand All @@ -96,9 +96,9 @@ abstract base class SpinifySubscriptionBase implements SpinifySubscription {
if (_state == state) return;
_stateController.add(_state = state);
_logger?.call(
const SpinifyLogLevel.debug(),
const SpinifyLogLevel.config(),
'subscription_state_changed',
'Subscription state changed',
'Subscription "$channel" state changed to ${state.type}',
<String, Object?>{
'channel': channel,
'subscription': this,
Expand Down

0 comments on commit 1735d95

Please sign in to comment.