Keep Tokenview and Telegram running when log files are not writable.
Daily logs created by root cron were blocking www from appending, which aborted webhook ingest and bot pushes. File channels now use 0664 plus exception-safe stacks, and writes go through SafeLog. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -4,9 +4,9 @@ namespace App\Console\Commands;
|
||||
|
||||
use App\Models\WalletAddress;
|
||||
use App\Services\Tokenview\TokenviewMonitorService;
|
||||
use App\Support\SafeLog;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class SyncTokenviewMonitorsCommand extends Command
|
||||
{
|
||||
@@ -25,7 +25,7 @@ class SyncTokenviewMonitorsCommand extends Command
|
||||
return $this->printStatus();
|
||||
}
|
||||
|
||||
$log = Log::channel('tokenview');
|
||||
$log = SafeLog::channel('tokenview');
|
||||
$startedAt = microtime(true);
|
||||
$startedAtStr = now()->toDateTimeString();
|
||||
|
||||
@@ -200,7 +200,7 @@ class SyncTokenviewMonitorsCommand extends Command
|
||||
}
|
||||
}
|
||||
|
||||
$logPath = storage_path('logs/tokenview-'.now()->format('Y-m-d').'.log');
|
||||
$logPath = storage_path('logs/tokenview/tokenview-'.now()->format('Y-m-d').'.log');
|
||||
$this->line('');
|
||||
$this->line('today\'s log: '.$logPath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user