1
0

- some debugging

- adding logs in mysql database
This commit is contained in:
2022-01-10 00:12:30 +01:00
parent 7acec3a3c4
commit cd20e973cd
5 changed files with 55 additions and 4 deletions

13
devices_logs.php Normal file
View 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);
}
}
?>