Forums

Error log empty, but app not responding

Hi, I have a python app hosted on your platform that is a telegram bot using Flask and pyTelegramBotAPI.

I have just uploaded a new version of my app to the platform after testing it locally and everything was working perfectly fine. Now not only the bot is not answering anymore, but the error logs file seems to remain completely empty.

I tried adding some print statements at the very beginning of the script, but nothing shows up in the server logs either. I also tried adding code that would trigger the interpreter to throw an exception, but nothing shows up still. At first I thought it might be due to the fact that being a free tier account, it requires longer to show in the logs, but it has been at least 1 hour since this happened and stil the error log is completely empty.

I don't know what else to do, any help is very much appreciated!

Prints that you add in a web app will appear in your error log, not your server log. Your error log is definitely not completely empty at the moment.

I did in the end figure out what the issue was, I forgot to pip install the python module that I was importing at the very beginning of the script. But it is weird that I would not get ANY kind of error in the logs. My error log now have data because I fixed the missing pip install module and went on with the development :)

Thanks anyway for the assist!

P.S. At least for me, but any and all the print statement that I add to the python script end up in the SERVER logs, not in ERROR logs.

You would need to print to stderr to have your prints in error log.