aboutsummaryrefslogtreecommitdiff
path: root/Mono.Nat/Pmp/PmpNatDevice.cs
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2019-01-07 00:47:06 -0500
committerGitHub <noreply@github.com>2019-01-07 00:47:06 -0500
commitc986340c02cb0b7fe06569d25a1b5d1c8375f7f6 (patch)
tree4971c970bbdb797cc5b3da2d8bae506231b173a5 /Mono.Nat/Pmp/PmpNatDevice.cs
parent76b647e0a8eddd65dc9c4de7b887a3faf6e12bcc (diff)
parent0b804629b85498370c882f5562dfc7acd84bfd11 (diff)
Merge pull request #419 from jellyfin/dev
Master 10.0.0
Diffstat (limited to 'Mono.Nat/Pmp/PmpNatDevice.cs')
-rw-r--r--Mono.Nat/Pmp/PmpNatDevice.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mono.Nat/Pmp/PmpNatDevice.cs b/Mono.Nat/Pmp/PmpNatDevice.cs
index dc0e2c89b..fbf3032d4 100644
--- a/Mono.Nat/Pmp/PmpNatDevice.cs
+++ b/Mono.Nat/Pmp/PmpNatDevice.cs
@@ -32,7 +32,7 @@ using System.Threading;
using System.Collections.Generic;
using System.Threading.Tasks;
using MediaBrowser.Model.Extensions;
-using MediaBrowser.Model.Logging;
+using Microsoft.Extensions.Logging;
namespace Mono.Nat.Pmp
{
@@ -132,7 +132,7 @@ namespace Mono.Nat.Pmp
mapping.Protocol,
mapping.PrivatePort,
e.Message);
- _logger.Debug(message);
+ _logger.LogDebug(message);
throw e;
}
@@ -183,7 +183,7 @@ namespace Mono.Nat.Pmp
};
var errorMsg = errors[resultCode];
- _logger.Debug("Error in CreatePortMapListen: " + errorMsg);
+ _logger.LogDebug("Error in CreatePortMapListen: " + errorMsg);
return;
}
@@ -198,7 +198,7 @@ namespace Mono.Nat.Pmp
}
catch (Exception ex)
{
- _logger.ErrorException("Error in CreatePortMapListen", ex);
+ _logger.LogError(ex, "Error in CreatePortMapListen");
return;
}
}