The DB error log is usable again, updates to match structure

This commit is contained in:
Pinga 2025-02-14 14:51:23 +02:00
parent 483554762a
commit b43483ed2f
8 changed files with 259 additions and 38 deletions

View file

@ -465,9 +465,17 @@ class ApplicationsController extends Controller
$db->insert(
'error_log',
[
'registrar_id' => $clid,
'log' => "Application : $domainName ; hostName : $nameserver - is duplicated",
'date' => $logdate
'channel' => 'control_panel',
'level' => 3,
'level_name' => 'warning',
'message' => "Application: $domainName; hostName: $nameserver - is duplicated",
'context' => json_encode([
'registrar_id' => $clid,
'domain' => $domainName,
'host' => $nameserver
]),
'extra' => json_encode([]),
'created_at' => $logdate
]
);
}