2022-05-12 16:26:04 +02:00
|
|
|
from app.build_info import SHA1
|
2019-07-01 17:18:12 +02:00
|
|
|
from app.monitor.base import monitor_bp
|
|
|
|
|
|
|
|
|
|
|
|
@monitor_bp.route("/git")
|
|
|
|
def git_sha1():
|
2019-12-26 12:23:52 +01:00
|
|
|
return SHA1
|
2019-07-01 17:18:12 +02:00
|
|
|
|
|
|
|
|
2020-12-02 16:34:28 +01:00
|
|
|
@monitor_bp.route("/live")
|
|
|
|
def live():
|
|
|
|
return "live"
|
|
|
|
|
|
|
|
|
2019-07-01 17:18:12 +02:00
|
|
|
@monitor_bp.route("/exception")
|
|
|
|
def test_exception():
|
|
|
|
raise Exception("to make sure sentry works")
|
|
|
|
return "never reach here"
|