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

Commit 4df4dc3

Browse files
committed
Using variables instead of literals in logs in PerunEntitlement.php
* Issue: https://github.com/CESNET/perun-simplesamlphp-module/issues/101 *
1 parent 1040659 commit 4df4dc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Auth/Process/PerunEntitlement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ protected function mapGroupName($request, $groupName)
186186
isset($request['SPMetadata']['groupMapping']) &&
187187
isset($request['SPMetadata']['groupMapping'][$groupName])) {
188188
Logger::debug(
189-
'Mapping $groupName to ' . $request['SPMetadata']['groupMapping'][$groupName] .
189+
'Mapping ' . $groupName . ' to ' . $request['SPMetadata']['groupMapping'][$groupName] .
190190
' for SP ' . $request['SPMetadata']['entityid']
191191
);
192192
return $request['SPMetadata']['groupMapping'][$groupName];
@@ -199,7 +199,7 @@ protected function mapGroupName($request, $groupName)
199199
} else {
200200
# No mapping defined, so just put groupNamePrefix in front of the group
201201
Logger::debug(
202-
'No mapping found for group $groupName for SP ' . $request['SPMetadata']['entityid']
202+
'No mapping found for group ' . $groupName . ' for SP ' . $request['SPMetadata']['entityid']
203203
);
204204
return $this->entitlementPrefix . 'group:' . $groupName;
205205
}

0 commit comments

Comments
 (0)