mirror of
https://github.com/simple-login/app.git
synced 2024-11-13 07:31:12 +01:00
17 lines
305 B
Python
17 lines
305 B
Python
|
import subprocess
|
||
|
|
||
|
from app.monitor.base import monitor_bp
|
||
|
|
||
|
SHA1 = subprocess.getoutput("git rev-parse HEAD")
|
||
|
|
||
|
|
||
|
@monitor_bp.route("/git")
|
||
|
def git_sha1():
|
||
|
return SHA1
|
||
|
|
||
|
|
||
|
@monitor_bp.route("/exception")
|
||
|
def test_exception():
|
||
|
raise Exception("to make sure sentry works")
|
||
|
return "never reach here"
|