Skip to content

Commit 7e9bef0

Browse files
committed
Fixed breaking change in NLogConfigurationException
1 parent ff3744e commit 7e9bef0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Elastic.NLog.Targets/ElasticsearchTarget.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,7 @@ private NodePool CreateNodePool()
295295
+ $"'{nameof(Username)}' and '{nameof(Password)}");
296296
//case ElasticPoolType.StickySniffing:
297297
default:
298-
throw new NLogConfigurationException($"Unrecognised ElasticSearch connection pool type '{NodePoolType}' specified in the configuration.",
299-
nameof(NodePoolType));
298+
throw new NLogConfigurationException($"Unrecognised ElasticSearch connection pool type '{NodePoolType}' specified in the configuration.");
300299
}
301300
}
302301

0 commit comments

Comments
 (0)