Answer the question
In order to leave comments, you need to log in
Logging the output of Django commands
Good afternoon!
Actually, the problem.
There is a cron that runs a bash script once a minute.
The bash script looks like
#!/bin/bash
python /root/manage.py processmail >> /root/logs/mail/`date +%Y-%m-%d`.log
this. It logs everything perfectly until the script crashes with an error. That is, any exception is passed by and does not get into the log :(
Tell me a normal solution, please? I didn’t find others (
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question