We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 889f6df + f9ce502 commit 5c7ec9aCopy full SHA for 5c7ec9a
src/NHibernate/Logging.cs
@@ -85,7 +85,7 @@ private static string GetNhibernateLoggerClass()
85
string baseDir = AppDomain.CurrentDomain.BaseDirectory;
86
string relativeSearchPath = AppDomain.CurrentDomain.RelativeSearchPath;
87
string binPath = relativeSearchPath == null ? baseDir : Path.Combine(baseDir, relativeSearchPath);
88
- var log4NetDllPath = Path.Combine(binPath, "log4net.dll");
+ string log4NetDllPath = binPath == null ? "log4net.dll" : Path.Combine(binPath, "log4net.dll");
89
90
if (File.Exists(log4NetDllPath))
91
{
@@ -456,4 +456,4 @@ public void WarnFormat(string format, params object[] args)
456
WarnFormatDelegate(logger, format, args);
457
}
458
459
-}
+}
0 commit comments