amici-ursi / ImagesOfNetwork

Tools for managing the ImagesOfNetwork on reddit
MIT License
7 stars 9 forks source link

Fix Logging #73

Open scowcron opened 8 years ago

scowcron commented 8 years ago

amici runs the bot under screen under supervisord right now. that means that even though supervisord is set up to log stdout/stderr, there's no logfile. one of two things needs to happen:

  1. we need to set up logging so that we explictly log to a file (adjust /images_of/data/logging.toml)
  2. amici needs to stop running under screen.
amici-ursi commented 8 years ago

logging via supervisord

is set to:

logfile_maxbytes=50MB         ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10           ; (num of main logfile rotation backups;default 10)
loglevel=info                ; (log level;default info; others: debug,warn,trace)

and

stderr_logfile=imagesof.err.log
stdout_logfile=imagesof.out.log

note that dumps the logs into the directory that supervisor was started in.

example log is attached. renamed to .txt for github compatibility. imagesof.out.log.txt

amici-ursi commented 8 years ago

leaving open pending your input