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

Commit d9c8112

Browse files
committed
Use the same prefix for all messages in updateUes.php
1 parent 6f82c8e commit d9c8112

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
44
## [Unreleased]
55
#### Fixed
66
- Fixed the bug from [bc3ec33] which caused that the updating UES didn't work.
7+
- Use the same prefix for all messages in updateUes.php
78

89
[bc3ec33]:https://github.com/CESNET/perun-simplesamlphp-module/commit/bc3ec33c8f5088f7be712b8e5a0e70f229731648
910

www/updateUes.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
);
2929
if ($userExtSource === null) {
3030
throw new Exception(
31-
'sspmod_perun_Auth_Process_UpdateUserExtSource: there is no UserExtSource with ExtSource ' .
31+
'perun/www/updateUes.php: there is no UserExtSource with ExtSource ' .
3232
$attributesFromIdP['sourceIdPEntityID'][0] . " and Login " .
3333
$attributesFromIdP['sourceIdPEppn'][0]
3434
);
@@ -42,7 +42,7 @@
4242

4343
if ($attributesFromPerun === null) {
4444
throw new Exception(
45-
'sspmod_perun_Auth_Process_UpdateUserExtSource: getting attributes was not successful.'
45+
'perun/www/updateUes.php: getting attributes was not successful.'
4646
);
4747
}
4848

@@ -74,7 +74,7 @@
7474
$valueFromIdP = $attr;
7575
} else {
7676
throw new Exception(
77-
'sspmod_perun_updateUes: unsupported type of attribute.'
77+
'perun/www/updateUes.php: unsupported type of attribute.'
7878
);
7979
}
8080
if ($valueFromIdP !== $attribute['value']) {
@@ -90,10 +90,10 @@
9090

9191
$adapter->updateUserExtSourceLastAccess($userExtSource['id']);
9292

93-
Logger::debug('sspmod_perun_updateUes - Updating UES for user with userId: ' . $perunUserId . ' was successful.');
93+
Logger::debug('perun/www/updateUes.php: Updating UES for user with userId: ' . $perunUserId . ' was successful.');
9494
} catch (\Exception $ex) {
9595
Logger::warning(
96-
'sspmod_perun_updateUes: Updating UES for user with userId: ' . $perunUserId . ' was not successful: ' .
96+
'perun/www/updateUes.php: Updating UES for user with userId: ' . $perunUserId . ' was not successful: ' .
9797
$ex->getMessage()
9898
);
9999
}

0 commit comments

Comments
 (0)