- some debugging
- adding logs in mysql database
This commit is contained in:
1 parent
7acec3a3c4
commit
cd20e973cd
5 files changed
+55
-4
No files matched your search
@@ -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