Skip to content

Commit 3e6a9a0

Browse files
committed
fix: disable log viewer on Servd edge servers
1 parent 7e1d3ac commit 3e6a9a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IconManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ private function _registerLogTarget(): void
364364
'pluginHandle' => $this->handle,
365365
'pluginName' => $this->name,
366366
'logLevel' => $settings->logLevel,
367-
'enableLogViewer' => true, // Keep file logging enabled - Servd will auto-capture from /storage/logs
367+
'enableLogViewer' => !isset($_ENV['SERVD_PROJECT_SLUG']), // Disable on Servd - edge servers can't write to /storage/logs
368368
'permissions' => ['iconManager:viewLogs'],
369369
]);
370370
}

0 commit comments

Comments
 (0)