Commit f31ab7fa authored by ketominer's avatar ketominer
Browse files

add syslog

parent a8154f28
Pipeline #8 canceled with stages
......@@ -4,9 +4,13 @@ require_once('/etc/nodl/config.php');
require_once('easybitcoin.php');
require_once('easylnd.php');
openlog("nodl", LOG_PID | LOG_PERROR, LOG_LOCAL0);
syslog(LOG_INFO, "Nodl batch starting...");
$db = mysqli_connect ($db_host, $db_user, $db_pass, $db_name);
if(!$db) {
echo "Can't connect to the database";
syslog(LOG_ERROR, "Can't connect to the database");
exit(1);
}
......@@ -175,8 +179,6 @@ if($lnd_pid = exec('pgrep lnd')) {
}
sleep(15);
}
$res->free_result();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment