Commit e1c50441 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Fixed logging lines being displayed when they were disabled

parent d8f914bf
......@@ -161,7 +161,7 @@ sub getPolicy
}
}
$server->log(LOG_INFO,"[POLICIES] $debugTxt: Source matching result: matched=$sourceMatch");
$server->log(LOG_INFO,"[POLICIES] $debugTxt: Source matching result: matched=$sourceMatch") if($log);
# Check if we passed the tests
next if (!$sourceMatch);
......@@ -398,7 +398,7 @@ sub policyDestinationItemMatches
} else {
$server->log(LOG_WARN,"[POLICIES] $debugTxt: No group members for destination group '$item'");
}
$server->log(LOG_DEBUG,"[POLICIES] $debugTxt=>(group:$item): Destination group result: matched=$match");
$server->log(LOG_DEBUG,"[POLICIES] $debugTxt=>(group:$item): Destination group result: matched=$match") if ($log);
# Normal member
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment