mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-21 10:06:05 +02:00
The DB error log is usable again, updates to match structure
This commit is contained in:
parent
483554762a
commit
b43483ed2f
8 changed files with 259 additions and 38 deletions
|
@ -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
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue