Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit fd9ca9c

Browse files
author
Paulo Neto
committed
Display the type name in the log message
1 parent fd1fa22 commit fd9ca9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BuildingBlocks/EventBus/EventBusServiceBus/EventBusServiceBus.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void Publish(IntegrationEvent @event)
6161
public void SubscribeDynamic<TH>(string eventName)
6262
where TH : IDynamicIntegrationEventHandler
6363
{
64-
_logger.LogInformation("Subscribing to dynamic event {EventName} with {EventHandler}", eventName, nameof(TH));
64+
_logger.LogInformation("Subscribing to dynamic event {EventName} with {EventHandler}", eventName, typeof(TH).Name);
6565

6666
_subsManager.AddDynamicSubscription<TH>(eventName);
6767
}
@@ -89,7 +89,7 @@ public void Subscribe<T, TH>()
8989
}
9090
}
9191

92-
_logger.LogInformation("Subscribing to event {EventName} with {EventHandler}", eventName, nameof(TH));
92+
_logger.LogInformation("Subscribing to event {EventName} with {EventHandler}", eventName, typeof(TH).Name);
9393

9494
_subsManager.AddSubscription<T, TH>();
9595
}

0 commit comments

Comments
 (0)