Skip to content

Commit 274ac66

Browse files
committed
Added InternalLogger for connection attempt
1 parent 497a3be commit 274ac66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NLog.Targets.Fluentd/Fluentd.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ protected void EnsureConnected()
246246

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

345346
private static object SerializePropertyValue(string propertyKey, object propertyValue)
346347
{
347-
if (propertyValue == null || Convert.GetTypeCode(propertyValue) != TypeCode.Object || propertyValue is decimal)
348+
if (propertyValue == null || Convert.GetTypeCode(propertyValue) != TypeCode.Object)
348349
{
349350
return propertyValue; // immutable
350351
}

0 commit comments

Comments
 (0)