Stop printing IPN / LDAP status

This commit is contained in:
Tanner Collin 2020-02-10 09:21:01 +00:00
parent ae6f71a236
commit 3d2ddcc206
2 changed files with 0 additions and 4 deletions

View File

@ -5,9 +5,6 @@ from apiserver import secrets
def is_configured():
return bool(secrets.LDAP_API_URL and secrets.LDAP_API_KEY)
if not is_configured:
print('LDAP connection not configured.')
def ldap_api(route, data):
try:

View File

@ -7,7 +7,6 @@ from .api import views
from . import secrets
IPN_ROUTE = r'^ipn/{}/'.format(secrets.IPN_RANDOM)
print('IPN route is:', '/'+IPN_ROUTE[1:])
router = routers.DefaultRouter()
router.register(r'door', views.DoorViewSet, basename='door')