Skip to content

Commit 4f95824

Browse files
author
mwatson
committed
Add log messages about NLog target closing
1 parent d26d5a7 commit 4f95824

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Src/StackifyLib.nLog/StackifyTarget.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ protected override void CloseTarget()
4141
{
4242
try
4343
{
44+
Utils.StackifyAPILogger.Log("NLog target closing");
4445
_logClient.Close();
4546
StackifyLib.Internal.Metrics.MetricClient.StopMetricsQueue();
46-
4747
}
48-
catch
48+
catch (Exception ex)
4949
{
50+
Utils.StackifyAPILogger.Log("NLog target closing error: " + ex.ToString());
5051
}
5152
}
5253

0 commit comments

Comments
 (0)