direct log file

This commit is contained in:
2023-02-03 11:04:31 +10:00
parent b0ae6b0a3d
commit 44f6ef4a0b

View File

@@ -27,7 +27,7 @@ class LogController extends ApiController
switch(strtolower($name)) { switch(strtolower($name)) {
case 'discord': case 'discord':
$contents = ''; $contents = '';
$filePath = '/opt/discordbot/discordbot.log'; $filePath = '/home/discordbot/.pm2/logs/stemmech-discordbot-out-0.log';
if(file_exists($filePath) === true) { if(file_exists($filePath) === true) {
$contents = file_get_contents($filePath); $contents = file_get_contents($filePath);
} }