Skip to content

Commit

Permalink
- fix Guzzle is trying to serialize a PDO object, fails with a PDO Ex…
Browse files Browse the repository at this point in the history
…ception #8

- saving just a name instead of the whole Symfony request object
  • Loading branch information
Florian Preusner committed May 20, 2015
1 parent 9928081 commit c9ffbfc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion DataCollector/HttpDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function collect(Request $request, Response $response, \Exception $except
$this->logger->clear();

$logGroup = $this->getLogGroup($requestId);
$logGroup->setRequest($request);
$logGroup->setRequestName($request->getPathInfo());
$logGroup->setMessages($messages);
} // end: collect()

Expand Down
24 changes: 12 additions & 12 deletions Log/LogGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,37 +21,37 @@ class LogGroup {
protected $messages = array();

/**
* @var Request
* @var string
*/
protected $request;
protected $requestName;

/**
* Set Symfony Request
* Set Request Name
*
* @author Florian Preusner
* @version 2.1
* @since 2015-05
*
* @param Request $value
* @param string $value
*/
public function setRequest(Request $value) {
public function setRequestName($value) {

$this->request = $value;
} // end: setRequest()
$this->requestName = $value;
} // end: setRequestName()

/**
* Get Symfony Request
* Get Request Name
*
* @author Florian Preusner
* @version 2.1
* @since 2015-05
*
* @return Request
* @return string
*/
public function getRequest() {
public function getRequestName() {

return $this->request;
} // end: getRequest()
return $this->requestName;
} // end: getRequestName()

/**
* Set Log Messages
Expand Down

0 comments on commit c9ffbfc

Please sign in to comment.