Skip to content

Commit

Permalink
Fixing code formatting in Syslog adapter.
Browse files Browse the repository at this point in the history
  • Loading branch information
nateabele committed Dec 9, 2009
1 parent 5a443ab commit c3ec422
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libraries/lithium/util/audit/logger/adapters/Syslog.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ public function __construct($config = array()) {
*/
public function write($type, $message) {
if (static::$_lastOpenedBy != $type) {
closelog(); // Close previously opened log (doesn't matter if none opened)
openlog($this->_config['identity'], $this->_config['options'], $this->_config['facility']);
closelog();
openlog(
$this->_config['identity'], $this->_config['options'], $this->_config['facility']
);
static::$_lastOpenedBy = $type;
}

$priority = $this->_config['priority'];

return function($self, $params, $chain) use ($priority) {
Expand Down

0 comments on commit c3ec422

Please sign in to comment.