Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit fa5af89

Browse files
author
Ivan Poddubny
committed
Added write_log option to asmanager and set +x on mkdocs and fastagi
1 parent f3430e0 commit fa5af89

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

mkdocs.php

100644100755
File mode changed.

phpagi-asmanager.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class AGI_AsteriskManager
9595
* @var boolean
9696
*/
9797
private $_logged_in = FALSE;
98-
98+
9999
/**
100100
* Constructor
101101
*
@@ -119,6 +119,7 @@ function AGI_AsteriskManager($config=NULL, $optconfig=array())
119119
if(!isset($this->config['asmanager']['port'])) $this->config['asmanager']['port'] = 5038;
120120
if(!isset($this->config['asmanager']['username'])) $this->config['asmanager']['username'] = 'phpagi';
121121
if(!isset($this->config['asmanager']['secret'])) $this->config['asmanager']['secret'] = 'phpagi';
122+
if(!isset($this->config['asmanager']['write_log'])) $this->config['asmanager']['write_log'] = false;
122123
}
123124

124125
/**
@@ -776,7 +777,7 @@ function log($message, $level=1)
776777
{
777778
if($this->pagi != false)
778779
$this->pagi->conlog($message, $level);
779-
else
780+
elseif($this->config['asmanager']['write_log'])
780781
error_log(date('r') . ' - ' . $message);
781782
}
782783

phpagi-fastagi.php

100644100755
File mode changed.

0 commit comments

Comments
 (0)