Skip to content

Commit 51cd502

Browse files
committed
Default values the way the docs suggest we do (#1)
1 parent a278427 commit 51cd502

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Auth/Process/Fticks.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,11 @@ public function __construct($config, $reserved)
266266
} else {
267267
throw new \Exception('F-ticks logconfig must be an array');
268268
}
269-
} else {
269+
}
270+
if (!array_key_exists('facility', $this->logconfig)) {
270271
$this->logconfig['facility'] = $defaultFacility;
272+
}
273+
if (!array_key_exists('processname', $this->logconfig)) {
271274
$this->logconfig['processname'] = $defaultProcessName;
272275
}
273276
/* warn if we risk mucking up the openlog call (doesn't matter for remote syslog) */

0 commit comments

Comments
 (0)