aboutsummaryrefslogtreecommitdiff
path: root/Mono.Nat
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2018-12-20 13:11:26 +0100
committerBond_009 <bond.009@outlook.com>2018-12-30 22:44:39 +0100
commitea4c914123ba8279b9d9fcf7d5318e11f7a3da4c (patch)
tree455bf175270ffd7c1cb8f4e4ea0fb41851f7c59e /Mono.Nat
parentbf01918659986cc6cbaefaebb67f607aeb1b4400 (diff)
Fix exception logging
Diffstat (limited to 'Mono.Nat')
-rw-r--r--Mono.Nat/Pmp/PmpNatDevice.cs2
-rw-r--r--Mono.Nat/Upnp/Searchers/UpnpSearcher.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Mono.Nat/Pmp/PmpNatDevice.cs b/Mono.Nat/Pmp/PmpNatDevice.cs
index 99d030207..fbf3032d4 100644
--- a/Mono.Nat/Pmp/PmpNatDevice.cs
+++ b/Mono.Nat/Pmp/PmpNatDevice.cs
@@ -198,7 +198,7 @@ namespace Mono.Nat.Pmp
}
catch (Exception ex)
{
- _logger.LogError("Error in CreatePortMapListen", ex);
+ _logger.LogError(ex, "Error in CreatePortMapListen");
return;
}
}
diff --git a/Mono.Nat/Upnp/Searchers/UpnpSearcher.cs b/Mono.Nat/Upnp/Searchers/UpnpSearcher.cs
index e9e47a91e..bcf358d1c 100644
--- a/Mono.Nat/Upnp/Searchers/UpnpSearcher.cs
+++ b/Mono.Nat/Upnp/Searchers/UpnpSearcher.cs
@@ -90,7 +90,7 @@ namespace Mono.Nat
}
catch (Exception ex)
{
- _logger.LogError("Error decoding device response", ex);
+ _logger.LogError(ex, "Error decoding device response");
}
}