feat(proxmox): add statistics redirect component and route
Introduced a new Livewire component for statistics redirection and added a corresponding route to enhance navigation within the Proxmox extension. This update lays the groundwork for future statistics-related features.
This commit is contained in:
10
temp/check_errors.py
Normal file
10
temp/check_errors.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import re, sys
|
||||
p = '/var/www/paymenter/storage/logs/laravel-2026-03-28.log'
|
||||
pat = re.compile(r'^\[(.*?)\]\s+\w+\.ERROR:')
|
||||
errs = []
|
||||
with open(p, 'r', encoding='utf-8', errors='ignore') as f:
|
||||
for i, l in enumerate(f, 1):
|
||||
if pat.match(l) and 'cron' not in l.lower() and 'Scheduled command' not in l:
|
||||
errs.append((i, l.rstrip()))
|
||||
for i, l in errs[-10:]:
|
||||
print(f'{i}: {l[:400]}')
|
||||
Reference in New Issue
Block a user