Skip to content

Commit 2982712

Browse files
committed
config tweak
1 parent 3280ab0 commit 2982712

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/RedisStackOverflow/RedisStackOverflow/Global.asax.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ public AppHost()
1717

1818
public override void Configure(Container container)
1919
{
20-
//Show StackTrace in Web Service Exceptions
20+
//Show StackTrace in Web Service Exceptions
2121
SetConfig(new EndpointHostConfig { DebugMode = true });
22-
22+
2323
//Register any dependencies you want injected into your services
2424
container.Register<IRedisClientsManager>(c => new PooledRedisClientManager());
2525
container.Register<IRepository>(c => new Repository(c.Resolve<IRedisClientsManager>()));
@@ -30,7 +30,7 @@ public class Global : System.Web.HttpApplication
3030
{
3131
protected void Application_Start(object sender, EventArgs e)
3232
{
33-
if (ConfigUtils.GetAppSetting("log","false") == "true") LogManager.LogFactory = new ConsoleLogFactory();
33+
if (ConfigUtils.GetAppSetting("log", false)) LogManager.LogFactory = new ConsoleLogFactory();
3434
new AppHost().Init();
3535
}
3636
}

0 commit comments

Comments
 (0)