Skip to content

Commit

Permalink
fix(corehelper): fix debugEnabled logic (was negated previously)
Browse files Browse the repository at this point in the history
We accidentally logged with debugging (trace) enabled if
debugging was disabled and logged with warnings only if debugging
was enabled.

ref #31
  • Loading branch information
Cogitri committed Apr 10, 2020
1 parent 5510a0a commit e686498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/corehelper/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ int main(string[] args)

if (conf.debugEnabled)
{
setupLogging(LogLevel.warning, File(conf.logPath, "w"));
setupLogging(LogLeve.trace, File(conf.logPath, "w"));
}
else
{
setupLogging(LogLevel.trace, File(conf.logPath, "w"));
setupLogging(LogLevel.warning, File(conf.logPath, "w"));
}

const auto options = new Options(args);
Expand Down

0 comments on commit e686498

Please sign in to comment.