Skip to content

Commit 778c57f

Browse files
committed
[UPD] As suggested by dmitriim "we don't need error_log here. Triggering event will add a log record to an application log."
1 parent 1b1978a commit 778c57f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

auth.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ public function user_login_userkey() {
179179
$event = \core\event\user_login_failed::create(array('userid' => $user->id,
180180
'other' => array('username' => $user->username, 'reason' => $failurereason)));
181181
$event->trigger();
182-
error_log('[client '.getremoteaddr()."] $CFG->wwwroot Suspended Login: $user->username ".$_SERVER['HTTP_USER_AGENT']);
183182
throw new invalid_parameter_exception('User suspended');
184183
}
185184
complete_user_login($user);

0 commit comments

Comments
 (0)