- some debugging
- adding logs in mysql database
This commit is contained in:
13
devices_logs.php
Normal file
13
devices_logs.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
function logDevice(& $device, $key, $value)
|
||||
{
|
||||
$db = new mysqli($mysqlServer, $username, $passwd, $database);
|
||||
if ($conn->connect_error)
|
||||
{
|
||||
logger(ERROR, _("Mysql connection failed: ") . $db->connect_error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user