Skip to content

Commit

Permalink
Fixed a bug in log targets where enabled option was not honored. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bonesoul committed Sep 25, 2014
1 parent 6fd3e8d commit 67ab8c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/CoiniumServ/Logging/LogManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ private void Initialize()

foreach (var target in _config.Targets)
{
if (!target.Enabled)
continue;

switch (target.Type)
{
case LogTargetType.Console:
Expand Down
2 changes: 1 addition & 1 deletion src/CoiniumServ/config/config-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"level": "verbose"
},
{
"enabled": true,
"enabled": false,
"type": "packet",
"filename": "packet.log",
"rolling": false,
Expand Down

0 comments on commit 67ab8c7

Please sign in to comment.