Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-03-21 10:37:41 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-03-21 10:37:41 +0300
commit17243c0067ccd5b2b2fbf9e2fc1ffc863e26cc04 (patch)
tree5c929ffacd812d7bf96275c8d719837f9a1df68e /lib/Signaling
parentfbcbeb6770cf2340a016308ab6c2e38f81683012 (diff)
Provide the app to logger
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/Signaling')
-rw-r--r--lib/Signaling/BackendNotifier.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Signaling/BackendNotifier.php b/lib/Signaling/BackendNotifier.php
index f5111bfb8..aa9ebf5ec 100644
--- a/lib/Signaling/BackendNotifier.php
+++ b/lib/Signaling/BackendNotifier.php
@@ -131,7 +131,7 @@ class BackendNotifier{
* @throws \Exception
*/
public function roomInvited($room, $users) {
- $this->logger->info('Now invited to ' . $room->getToken() . ': ' . print_r($users, true));
+ $this->logger->info('Now invited to ' . $room->getToken() . ': ' . print_r($users, true), ['app' => 'spreed']);
$userIds = [];
foreach ($users as $user) {
$userIds[] = $user['userId'];
@@ -159,7 +159,7 @@ class BackendNotifier{
* @throws \Exception
*/
public function roomsDisinvited($room, $userIds) {
- $this->logger->info('No longer invited to ' . $room->getToken() . ': ' . print_r($userIds, true));
+ $this->logger->info('No longer invited to ' . $room->getToken() . ': ' . print_r($userIds, true), ['app' => 'spreed']);
$this->backendRequest('/api/v1/room/' . $room->getToken(), [
'type' => 'disinvite',
'disinvite' => [
@@ -182,7 +182,7 @@ class BackendNotifier{
* @throws \Exception
*/
public function roomModified($room) {
- $this->logger->info('Room modified: ' . $room->getToken());
+ $this->logger->info('Room modified: ' . $room->getToken(), ['app' => 'spreed']);
$this->backendRequest('/api/v1/room/' . $room->getToken(), [
'type' => 'update',
'update' => [
@@ -202,7 +202,7 @@ class BackendNotifier{
* @throws \Exception
*/
public function roomDeleted($room, $participants) {
- $this->logger->info('Room deleted: ' . $room->getToken());
+ $this->logger->info('Room deleted: ' . $room->getToken(), ['app' => 'spreed']);
$userIds = array_keys($participants['users']);
$this->backendRequest('/api/v1/room/' . $room->getToken(), [
'type' => 'delete',
@@ -221,7 +221,7 @@ class BackendNotifier{
* @throws \Exception
*/
public function roomInCallChanged($room, $inCall, $sessionIds) {
- $this->logger->info('Room in-call status changed: ' . $room->getToken() . ' ' . $inCall . ' ' . print_r($sessionIds, true));
+ $this->logger->info('Room in-call status changed: ' . $room->getToken() . ' ' . $inCall . ' ' . print_r($sessionIds, true), ['app' => 'spreed']);
$changed = [];
$users = [];
$participants = $room->getParticipants();