summaryrefslogtreecommitdiffstats
path: root/tests/lib/LoggerTest.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2016-06-08 16:32:58 +0200
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-06-08 16:32:58 +0200
commite49307014c9dab210dc21cc50a918e0b1c6fff22 (patch)
tree80107bf8ddd6eb4b76fd8b494bd1007faef6207c /tests/lib/LoggerTest.php
parent56215513e1339c0c80bcaa67740768893e62b454 (diff)
downloadnextcloud-server-e49307014c9dab210dc21cc50a918e0b1c6fff22.tar.gz
nextcloud-server-e49307014c9dab210dc21cc50a918e0b1c6fff22.zip
Do not log token or challenge with exception stacktrace (#25026)
* Make the filtering better readable * Add some more methods to the sensitive list
Diffstat (limited to 'tests/lib/LoggerTest.php')
-rw-r--r--tests/lib/LoggerTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/LoggerTest.php b/tests/lib/LoggerTest.php
index 4eb04b00f58..4b80c01f343 100644
--- a/tests/lib/LoggerTest.php
+++ b/tests/lib/LoggerTest.php
@@ -89,7 +89,7 @@ class LoggerTest extends TestCase {
foreach($logLines as $logLine) {
$this->assertNotContains($user, $logLine);
$this->assertNotContains($password, $logLine);
- $this->assertContains('login(*** username and password replaced ***)', $logLine);
+ $this->assertContains('login(*** sensitive parameters replaced ***)', $logLine);
}
}
@@ -104,7 +104,7 @@ class LoggerTest extends TestCase {
foreach($logLines as $logLine) {
$this->assertNotContains($user, $logLine);
$this->assertNotContains($password, $logLine);
- $this->assertContains('checkPassword(*** username and password replaced ***)', $logLine);
+ $this->assertContains('checkPassword(*** sensitive parameters replaced ***)', $logLine);
}
}
@@ -119,7 +119,7 @@ class LoggerTest extends TestCase {
foreach($logLines as $logLine) {
$this->assertNotContains($user, $logLine);
$this->assertNotContains($password, $logLine);
- $this->assertContains('validateUserPass(*** username and password replaced ***)', $logLine);
+ $this->assertContains('validateUserPass(*** sensitive parameters replaced ***)', $logLine);
}
}
}