mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-31 00:36:16 +00:00
fix: SIP Options monitor would always write an error to log because sipsak by default writes DEBUG to stderr
This commit is contained in:
parent
c40f8e7ba5
commit
783e228406
1 changed files with 0 additions and 3 deletions
|
@ -31,9 +31,6 @@ class SIPMonitorType extends MonitorType {
|
|||
*/
|
||||
async runSipSak(hostname, port, timeout) {
|
||||
const { stdout, stderr } = await exec(`sipsak -s sip:${hostname}:${port} --from sip:sipsak@${hostname} -v`,{timeout:timeout});
|
||||
if (stderr){
|
||||
console.error(`Error in stderr: ${stderr.toString()}`);
|
||||
}
|
||||
if (!stdout && stderr && stderr.toString()) {
|
||||
throw new Error(`Error in output: ${stderr.toString()}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue