diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-01-02 06:55:23 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-01-02 06:55:23 -0800 |
commit | 42abd562b7f5a73f8ddb5450230ec4d1cada8b06 (patch) | |
tree | a2024ad0a15b4df2c45c4f922a750055708aed44 /src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs | |
parent | 1d79ff0a8b58b18636d91eadbed6504270a524fd (diff) | |
download | DotNetOpenAuth-42abd562b7f5a73f8ddb5450230ec4d1cada8b06.zip DotNetOpenAuth-42abd562b7f5a73f8ddb5450230ec4d1cada8b06.tar.gz DotNetOpenAuth-42abd562b7f5a73f8ddb5450230ec4d1cada8b06.tar.bz2 |
Adds another catch block to the logger initializer.
Diffstat (limited to 'src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs')
-rw-r--r-- | src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs b/src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs index 293a6b2..01da034 100644 --- a/src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs +++ b/src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs @@ -201,6 +201,8 @@ namespace DotNetOpenAuth.Loggers { return IsLog4NetPresent ? CreateLogger(name) : null; } catch (FileLoadException) { // wrong log4net.dll version return null; + } catch (TargetInvocationException) { // Thrown due to some security issues on .NET 4.5. + return null; } catch (TypeLoadException) { // Thrown by mono (http://stackoverflow.com/questions/10805773/error-when-pushing-dotnetopenauth-to-staging-or-production-environment) return null; } |