Skip to content

Commit

Permalink
Added InternalLogger for connection attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot committed Mar 17, 2018
1 parent 497a3be commit 274ac66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NLog.Targets.Fluentd/Fluentd.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ protected void EnsureConnected()

private void ConnectClient()
{
NLog.Common.InternalLogger.Debug("Fluentd Connecting to {0}:{1}", this.Host, this.Port);
this.client.Connect(this.Host, this.Port);
this.stream = this.client.GetStream();
this.emitter = new FluentdEmitter(this.stream);
Expand Down Expand Up @@ -344,7 +345,7 @@ protected override void Write(LogEventInfo logEvent)

private static object SerializePropertyValue(string propertyKey, object propertyValue)
{
if (propertyValue == null || Convert.GetTypeCode(propertyValue) != TypeCode.Object || propertyValue is decimal)
if (propertyValue == null || Convert.GetTypeCode(propertyValue) != TypeCode.Object)
{
return propertyValue; // immutable
}
Expand Down

0 comments on commit 274ac66

Please sign in to comment.