Skip to content

Commit

Permalink
Merge pull request #4 from brunogoossens/master
Browse files Browse the repository at this point in the history
adding debugging information for all requests
  • Loading branch information
kristofkeppens committed Mar 9, 2015
2 parents 2321de2 + a23394e commit de1fb12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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

0 comments on commit de1fb12

Please sign in to comment.