Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track / log python errors #94

Open
Flustered opened this issue May 18, 2021 · 2 comments
Open

Track / log python errors #94

Flustered opened this issue May 18, 2021 · 2 comments

Comments

@Flustered
Copy link
Collaborator

Flustered commented May 18, 2021

We should find a way or logging errors from the python process to help us debug.

@Flustered
Copy link
Collaborator Author

Via SSH I tried killing the process so I could re-start it on command line, but it restarts itself!

$ sudo pgrep python
$ sudo kill

We should start the process and write to a known logfile so we can run a script to list the last 20 entries...

@al2k
Copy link
Contributor

al2k commented May 18, 2021

Yup, flask is running as a service so it just auto starts again if it fails.

The way I used was to first stop the service:

systemctl stop startflask

Then you can run it manually from the command line and it will log to terminal atleast

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants