1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-22 08:15:18 +00:00

api: __init__: Drop unused imports and fix broken import

This commit is contained in:
Priit Laes 2018-02-03 13:18:56 +02:00
parent d476998c9e
commit f6c0e1ae85

View File

@ -4,13 +4,10 @@ import falcon
import mimetypes
import logging
import os
import click
import hashlib
from datetime import datetime, timedelta
from time import sleep
from datetime import datetime
from xattr import listxattr, getxattr
from certidude import mailer
from certidude.auth import login_required, authorize_admin
from certidude.auth import login_required
from certidude.user import User
from certidude.decorators import serialize, csrf_protection
from certidude import const, config
@ -274,7 +271,7 @@ def certidude_app(log_handlers=[]):
app.add_route("/api/log/", LogResource(uri))
elif config.LOGGING_BACKEND == "syslog":
from logging.handlers import SyslogHandler
log_handlers.append(SysLogHandler())
log_handlers.append(SyslogHandler())
# Browsing syslog via HTTP is obviously not possible out of the box
elif config.LOGGING_BACKEND:
raise ValueError("Invalid logging.backend = %s" % config.LOGGING_BACKEND)