-
-
Notifications
You must be signed in to change notification settings - Fork 91
View the logs
Daniel Tischner edited this page Oct 6, 2022
·
7 revisions
There are two ways to read the logs of the bots:
- by reading the forwarded messages in Discord
- by manually logging in to the VPS and looking up the log files
The log level can be changed temporarily using the command /set-log-level
.
All log messages, with a few sensitive exceptions, are forwarded to Discord via webhooks. You can read them in the two channels:
-
tjbot_log_info - contains all
INFO
,DEBUG
,TRACE
messages -
tjbot_log_error - contains all
WARN
,ERROR
,FATAL
messages
In order to read the log files of the bots directly, one has to login to the VPS and command Docker to execute the corresponding task. Only members of the Moderator-Team can do the following steps.
See Access the VPS for details of the login process.
-
ssh togetherjava
to login to the VPS - Either
cd ~/docker-infra/master-bot
orcd ~/docker-infra/develop-bot
to go to the directory of the corresponding bot - Execute
docker-compose logs -f
- Hit Ctrl + C to stop