direct log file
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user