From 2c9867c2dd11b3c5e685425dc7ddec181ca3ef62 Mon Sep 17 00:00:00 2001 From: Alexander Moerman Date: Tue, 15 May 2018 15:16:07 +0200 Subject: [PATCH] Fix logging of TeamCityClient requests --- src/TeamCityTheatre.Core/Client/TeamCityClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TeamCityTheatre.Core/Client/TeamCityClient.cs b/src/TeamCityTheatre.Core/Client/TeamCityClient.cs index 79760186..2a71fab5 100644 --- a/src/TeamCityTheatre.Core/Client/TeamCityClient.cs +++ b/src/TeamCityTheatre.Core/Client/TeamCityClient.cs @@ -24,7 +24,7 @@ public LoggingTeamCityClient(ILogger logger, T inner) { var parameters = string.Join(", ", request.Parameters.Select(p => $"{p.Name} = {p.Value}")); _logger.Information("[REQUEST ] {Method} {Url} with parameters {Parameters}", request.Method, request.Resource, parameters); var response = await _inner.ExecuteRequestAsync(request); - _logger.Information("[RESPONSE] {Data}", response); + _logger.Information("[RESPONSE] {@Data}", response); return response; } }