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

Send message to Slack#general when manual intervention is needed #96

Open
emanuelen5 opened this issue Oct 13, 2021 · 3 comments
Open
Labels

Comments

@emanuelen5
Copy link
Member

I.e. currently needed for someone to change the label roll

@emanuelen5 emanuelen5 added the enhancement New feature or request label Oct 13, 2021
@emanuelen5
Copy link
Member Author

Also "Editor line" error can be logged this way. Example stack trace that otherwise does not log anything:

2021-10-14 **:**:** INFO [/home/memberbooth/memberbooth/src/label/creator.py:302]: Creating a QR code for temporary storage with data: {"member_number":****v":1,"type":"temp","expiry_date":"2022-01-XX","unix_timestamp":1635000000,"description":"Description"}
2021-10-14 **:**:** ERROR [/home/memberbooth/memberbooth/src/gui/design.py:305]: GUI error: Printer not found, ensure that printer is connected and turned on. Also ensure that the "Editor Line" function is disabled.

@BerglundDaniel
Copy link
Member

The easiest way to do this is probably by using the http listner function in slack machine and put it in the slack bot.

@emanuelen5
Copy link
Member Author

emanuelen5 commented Oct 16, 2021

We have Slack logging already using the Python package "slack". We basically we just need to change what channel it logs to.
https://github.com/makerspace/memberbooth/blob/master/src/util/slack_client.py

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

No branches or pull requests

2 participants