Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 8233887

Browse files
committed
Update OrmLiteConfig.cs
1 parent d99d25e commit 8233887

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ServiceStack.OrmLite/OrmLiteConfig.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ public static IDbConnection ToDbConnection(this string dbConnectionStringOrFileP
133133
return dbConn;
134134
}
135135

136-
public static void ResetLogFactory(ILogFactory logFactory)
136+
public static void ResetLogFactory(ILogFactory logFactory=null)
137137
{
138+
logFactory = logFactory ?? LogManager.LogFactory;
138139
LogManager.LogFactory = logFactory;
139140
OrmLiteResultsFilterExtensions.Log = logFactory.GetLogger(typeof(OrmLiteResultsFilterExtensions));
140141
OrmLiteWriteCommandExtensions.Log = logFactory.GetLogger(typeof(OrmLiteWriteCommandExtensions));

0 commit comments

Comments
 (0)