Skip to content

Commit 7b32b07

Browse files
committed
TMP: Add logs
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 8564bc8 commit 7b32b07

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

lib/private/Session/Internal.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
use OC\Authentication\Exceptions\InvalidTokenException;
3737
use OC\Authentication\Token\IProvider;
3838
use OCP\Session\Exceptions\SessionNotAvailableException;
39+
use function OCP\Log\logger;
3940

4041
/**
4142
* Class Internal
@@ -178,6 +179,7 @@ public function getId(): string {
178179
*/
179180
public function reopen(): bool {
180181
if ($this->sessionClosed) {
182+
logger()->error('lock_session_reopen', ['exception' => new \Exception()]);
181183
$this->startSession();
182184
$this->sessionClosed = false;
183185
return true;

lib/private/Session/Session.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
namespace OC\Session;
2929

3030
use OCP\ISession;
31+
use function OCP\Log\logger;
3132

3233
abstract class Session implements \ArrayAccess, ISession {
3334

@@ -79,6 +80,8 @@ public function offsetUnset($offset): void {
7980
* Close the session and release the lock
8081
*/
8182
public function close() {
83+
logger()->error('lock_session_close', ['exception' => new \Exception()]);
84+
8285
$this->sessionClosed = true;
8386
}
8487
}

0 commit comments

Comments
 (0)