import os
import logging
import datetime

LOG_LEVEL = logging.INFO
logging.basicConfig(level=LOG_LEVEL)
DEBUG = True

HASH_ROUNDS = 3998
HASH_ALGO = "pbkdf2-sha512"
HASH_ALGO_CLS = "pbkdf2_sha512"
HASH_SALT_SIZE = 32

OAUTH_SCOPES = [
    u'analytics',
    u'inoffice',
]

OAUTH2_PROVIDER_TOKEN_EXPIRES_IN = 864000

ES_INDEX = "lablog"
ES_HOSTS = [{"host":"es", "port":9200},]

AUTH_SUBDOMAIN = "auth"

SECRET_KEY = "!!zer0K00L!!"
SERVER_NAME = os.getenv("SERVER_NAME")

SESSION_COOKIE_NAME = "lablog"
SESSION_COOKIE_SECURE = False
SESSION_COOKIE_DOMAIN = ".{}".format(SERVER_NAME) if SERVER_NAME else None
SESSION_TYPE = 'mongodb'
PERMANENT_SESSION_LIFETIME = datetime.timedelta(hours=24)

REMEMBER_COOKIE_NAME = "well_hello_there"
REMEMBER_COOKIE_DURATION = datetime.timedelta(days=5)
REMEMBER_COOKIE_DOMAIN = ".{}".format(SERVER_NAME) if SERVER_NAME else None

INFLUX_HOST = "influx"
INFLUX_PORT = 8086
INFLUX_USER = "root"
INFLUX_PASSWORD = "root"
INFLUX_DATABASE = "lablog"

LOGGER_NAME = "lablog"
JSON_AS_ASCII = False

TEMPLATES = "{}/lablog/views/templates".format(os.getcwd())

MONGO_HOST = "mongo"
MONGO_PORT = 27017

FACEBOOK_APP_ID = os.getenv("FACEBOOK_APP_ID")
FACEBOOK_APP_SECRET = os.getenv("FACEBOOK_APP_SECRET")

UPS_SMNP_IP = "172.16.14.36"

SKEY = os.environ.get("SKEY")

logging.info("KEY: {}".format(SKEY))

LDAP_LOGIN = True

LDAP_HOST = os.environ.get('LDAP_HOST')
LDAP_PORT = os.environ.get('LDAP_PORT')
LDAP_BASE_DN = os.environ.get('LDAP_BASE_DN')
LDAP_USERNAME = os.environ.get('LDAP_USERNAME')
LDAP_PASSWORD = os.environ.get('LDAP_PASSWORD')
LDAP_USER_OBJECT_FILTER = os.environ.get('LDAP_USER_OBJECT_FILTER')

import os
import logging
import datetime

LOG_LEVEL = logging.INFO
logging.basicConfig(level=LOG_LEVEL)
DEBUG = True

HASH_ROUNDS = 3998
HASH_ALGO = "pbkdf2-sha512"
HASH_ALGO_CLS = "pbkdf2_sha512"
HASH_SALT_SIZE = 32

OAUTH_SCOPES = [
    u'analytics',
    u'inoffice',
]

OAUTH2_PROVIDER_TOKEN_EXPIRES_IN = 864000

ES_INDEX = "lablog"
ES_HOSTS = [{"host":"es", "port":9200},]

AUTH_SUBDOMAIN = "auth"

SECRET_KEY = "!!zer0K00L!!"
SERVER_NAME = os.getenv("SERVER_NAME")

SESSION_COOKIE_NAME = "lablog"
SESSION_COOKIE_SECURE = False
SESSION_COOKIE_DOMAIN = ".{}".format(SERVER_NAME) if SERVER_NAME else None
SESSION_TYPE = 'mongodb'
PERMANENT_SESSION_LIFETIME = datetime.timedelta(hours=24)

REMEMBER_COOKIE_NAME = "well_hello_there"
REMEMBER_COOKIE_DURATION = datetime.timedelta(days=5)
REMEMBER_COOKIE_DOMAIN = ".{}".format(SERVER_NAME) if SERVER_NAME else None

INFLUX_HOST = "influx"
INFLUX_PORT = 8086
INFLUX_USER = "root"
INFLUX_PASSWORD = "root"
INFLUX_DATABASE = "lablog"

LOGGER_NAME = "lablog"
JSON_AS_ASCII = False

TEMPLATES = "{}/lablog/views/templates".format(os.getcwd())

MONGO_HOST = "mongo"
MONGO_PORT = 27017

FACEBOOK_APP_ID = os.getenv("FACEBOOK_APP_ID")
FACEBOOK_APP_SECRET = os.getenv("FACEBOOK_APP_SECRET")

UPS_SMNP_IP = "172.16.14.36"

SKEY = os.environ.get("SKEY")

LDAP_LOGIN = True

LDAP_HOST = os.environ.get('LDAP_HOST')
LDAP_PORT = os.environ.get('LDAP_PORT')
LDAP_BASE_DN = os.environ.get('LDAP_BASE_DN')
LDAP_USERNAME = os.environ.get('LDAP_USERNAME')
LDAP_PASSWORD = os.environ.get('LDAP_PASSWORD')
LDAP_USER_OBJECT_FILTER = os.environ.get('LDAP_USER_OBJECT_FILTER')

remove logging statement