diff --git a/Telegrator.Hosting/Polling/HostUpdateHandlersPool.cs b/Telegrator.Hosting/Polling/HostUpdateHandlersPool.cs index 2814287..35f3798 100644 --- a/Telegrator.Hosting/Polling/HostUpdateHandlersPool.cs +++ b/Telegrator.Hosting/Polling/HostUpdateHandlersPool.cs @@ -14,7 +14,7 @@ namespace Telegrator.Hosting.Polling /// protected override async Task ExecuteHandlerWrapper(DescribedHandlerInfo enqueuedHandler) { - _logger.LogInformation("Handler \"{0}\" has entered execution pool", enqueuedHandler.DisplayString); + //_logger.LogInformation("Handler \"{0}\" has entered execution pool", enqueuedHandler.DisplayString); await base.ExecuteHandlerWrapper(enqueuedHandler); } } diff --git a/Telegrator.Hosting/Polling/HostUpdateRouter.cs b/Telegrator.Hosting/Polling/HostUpdateRouter.cs index edd8145..e949aef 100644 --- a/Telegrator.Hosting/Polling/HostUpdateRouter.cs +++ b/Telegrator.Hosting/Polling/HostUpdateRouter.cs @@ -33,7 +33,7 @@ namespace Telegrator.Hosting.Polling /// public override Task HandleUpdateAsync(ITelegramBotClient botClient, Update update, CancellationToken cancellationToken) { - Logger.LogInformation("Received update of type \"{type}\"", update.Type); + //Logger.LogInformation("Received update of type \"{type}\"", update.Type); return base.HandleUpdateAsync(botClient, update, cancellationToken); } diff --git a/Telegrator.Hosting/Providers/HostAwaitingProvider.cs b/Telegrator.Hosting/Providers/HostAwaitingProvider.cs index e61cd07..b7ec5e5 100644 --- a/Telegrator.Hosting/Providers/HostAwaitingProvider.cs +++ b/Telegrator.Hosting/Providers/HostAwaitingProvider.cs @@ -9,15 +9,5 @@ namespace Telegrator.Hosting.Providers public class HostAwaitingProvider(IOptions options, ILogger logger) : AwaitingProvider(options.Value) { private readonly ILogger _logger = logger; - - /* - /// - public override IEnumerable GetHandlers(IUpdateRouter updateRouter, ITelegramBotClient client, Update update, CancellationToken cancellationToken = default) - { - IEnumerable handlers = base.GetHandlers(updateRouter, client, update, cancellationToken).ToArray(); - logger.LogInformation("Described awaiting handlers : {handlers}", string.Join(", ", handlers.Select(hndlr => hndlr.HandlerInstance.GetType().Name))); - return handlers; - } - */ } } diff --git a/Telegrator.Hosting/Providers/HostHandlersProvider.cs b/Telegrator.Hosting/Providers/HostHandlersProvider.cs index 8204fd2..a378b3a 100644 --- a/Telegrator.Hosting/Providers/HostHandlersProvider.cs +++ b/Telegrator.Hosting/Providers/HostHandlersProvider.cs @@ -26,16 +26,6 @@ namespace Telegrator.Hosting.Providers Logger = logger; } - /* - /// - public override IEnumerable GetHandlers(IUpdateRouter updateRouter, ITelegramBotClient client, Update update, CancellationToken cancellationToken = default) - { - IEnumerable handlers = base.GetHandlers(updateRouter, client, update, cancellationToken).ToArray(); - Logger.LogInformation("Described handlers : {handlers}", string.Join(", ", handlers.Select(hndlr => hndlr.DisplayString ?? hndlr.HandlerInstance.GetType().Name))); - return handlers; - } - */ - /// public override UpdateHandlerBase GetHandlerInstance(HandlerDescriptor descriptor, CancellationToken cancellationToken = default) { diff --git a/Telegrator.Hosting/Telegrator.Hosting.csproj b/Telegrator.Hosting/Telegrator.Hosting.csproj index 733b92c..dc65e1d 100644 --- a/Telegrator.Hosting/Telegrator.Hosting.csproj +++ b/Telegrator.Hosting/Telegrator.Hosting.csproj @@ -15,7 +15,7 @@ True True LICENSE - 1.0.5 + 1.0.6 diff --git a/Telegrator/Telegrator.csproj b/Telegrator/Telegrator.csproj index 5d01bc6..952510e 100644 --- a/Telegrator/Telegrator.csproj +++ b/Telegrator/Telegrator.csproj @@ -17,7 +17,7 @@ True True LICENSE - 1.0.5 + 1.0.6