Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/config/config_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ monolog:
applog:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%_app.log"
level: INFO
level: debug
channels: app
main:
type: fingers_crossed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
arguments: [ @doctrine_mongodb, @validator ]
bbb:
class: BBBLoadBalancer\AdminBundle\Service\BBBService
arguments: [ %bbb.salt% ]
arguments: [ %bbb.salt%, @logger ]
server:
class: BBBLoadBalancer\AdminBundle\Service\ServerService
arguments: [ @doctrine_mongodb, @bbb, @validator, @meeting, @logger ]
5 changes: 4 additions & 1 deletion src/BBBLoadBalancer/AdminBundle/Service/BBBService.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ class BBBService
/**
* Constructor.
*/
public function __construct($salt)
public function __construct($salt, $logger)
{
$this->salt = $salt;
$this->logger = $logger;

// Setting for BBB api lib
ini_set("allow_url_fopen", "On");
Expand Down Expand Up @@ -59,6 +60,8 @@ public function doRequest($url, $timeout = 2){

curl_close($ch);

$this->logger->debug("Request to BBB Server", array("url" => $url, "output" => $output));

return $output;
}

Expand Down