# Path: rrd/config.py
# LOG_LEVEL = os.environ.get("LOG_LEVEL",'DEBUG')
# SECRET_KEY = os.environ.get("SECRET_KEY","secret-key")
# PERMANENT_SESSION_LIFETIME = os.environ.get("PERMANENT_SESSION_LIFETIME",3600 * 24 * 30)
# SITE_COOKIE = os.environ.get("SITE_COOKIE","open-falcon-ck")
# API_ADDR = os.environ.get("API_ADDR","http://127.0.0.1:18080/api/v1")
# API_USER = os.environ.get("API_USER","admin")
# API_PASS = os.environ.get("API_PASS","password")
# PORTAL_DB_HOST = os.environ.get("PORTAL_DB_HOST","127.0.0.1")
# PORTAL_DB_PORT = int(os.environ.get("PORTAL_DB_PORT",3306))
# PORTAL_DB_USER = os.environ.get("PORTAL_DB_USER","falcon")
# PORTAL_DB_PASS = os.environ.get("PORTAL_DB_PASS","falcon")
# PORTAL_DB_NAME = os.environ.get("PORTAL_DB_NAME","falcon_portal")
# ALARM_DB_HOST = os.environ.get("ALARM_DB_HOST","127.0.0.1")
# ALARM_DB_PORT = int(os.environ.get("ALARM_DB_PORT",3306))
# ALARM_DB_USER = os.environ.get("ALARM_DB_USER","root")
# ALARM_DB_PASS = os.environ.get("ALARM_DB_PASS","")
# ALARM_DB_NAME = os.environ.get("ALARM_DB_NAME","alarms")
# LDAP_ENABLED = os.environ.get("LDAP_ENABLED",False)
# LDAP_SERVER = os.environ.get("LDAP_SERVER","ldap.forumsys.com:389")
# LDAP_BASE_DN = os.environ.get("LDAP_BASE_DN","dc=example,dc=com")
# LDAP_BINDDN = os.environ.get("LDAP_BINDDN","cn=manager,dc=example,dc=org")
# LDAP_BIND_PASS = os.environ.get("LDAP_BIND_PASS","password")
# LDAP_SEARCH_FMT = os.environ.get("LDAP_SEARCH_FMT","uid=%s")
# LDAP_ATTRS = ["cn","mail","telephoneNumber"]
# LDAP_TLS_START_TLS = False
# LDAP_TLS_CACERTDIR = ""
# LDAP_TLS_CACERTFILE = "/etc/openldap/certs/ca.crt"
# LDAP_TLS_CERTFILE = ""
# LDAP_TLS_KEYFILE = ""
# LDAP_TLS_REQUIRE_CERT = True
# LDAP_TLS_CIPHER_SUITE = ""
# BABEL_DEFAULT_LOCALE   = 'zh_CN'
# BABEL_DEFAULT_TIMEZONE = 'Asia/Shanghai'
# LANGUAGES   = {
#     'en':  'English',
#     'zh_CN':  'Chinese-Simplified',
# }
# MAINTAINERS = ['root']
# CONTACT = 'root@open-falcon.com'
# DEBUG = True


from rrd import config
import logging
#-*- coding:utf-8 -*-
# Copyright 2017 Xiaomi, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


logging.basicConfig(
        format='%(asctime)s %(levelname)s:%(message)s',
        datefmt="%Y-%m-%d %H:%M:%S",

# Path: rrd/config.py
# LOG_LEVEL = os.environ.get("LOG_LEVEL",'DEBUG')
# SECRET_KEY = os.environ.get("SECRET_KEY","secret-key")
# PERMANENT_SESSION_LIFETIME = os.environ.get("PERMANENT_SESSION_LIFETIME",3600 * 24 * 30)
# SITE_COOKIE = os.environ.get("SITE_COOKIE","open-falcon-ck")
# API_ADDR = os.environ.get("API_ADDR","http://127.0.0.1:18080/api/v1")
# API_USER = os.environ.get("API_USER","admin")
# API_PASS = os.environ.get("API_PASS","password")
# PORTAL_DB_HOST = os.environ.get("PORTAL_DB_HOST","127.0.0.1")
# PORTAL_DB_PORT = int(os.environ.get("PORTAL_DB_PORT",3306))
# PORTAL_DB_USER = os.environ.get("PORTAL_DB_USER","falcon")
# PORTAL_DB_PASS = os.environ.get("PORTAL_DB_PASS","falcon")
# PORTAL_DB_NAME = os.environ.get("PORTAL_DB_NAME","falcon_portal")
# ALARM_DB_HOST = os.environ.get("ALARM_DB_HOST","127.0.0.1")
# ALARM_DB_PORT = int(os.environ.get("ALARM_DB_PORT",3306))
# ALARM_DB_USER = os.environ.get("ALARM_DB_USER","root")
# ALARM_DB_PASS = os.environ.get("ALARM_DB_PASS","")
# ALARM_DB_NAME = os.environ.get("ALARM_DB_NAME","alarms")
# LDAP_ENABLED = os.environ.get("LDAP_ENABLED",False)
# LDAP_SERVER = os.environ.get("LDAP_SERVER","ldap.forumsys.com:389")
# LDAP_BASE_DN = os.environ.get("LDAP_BASE_DN","dc=example,dc=com")
# LDAP_BINDDN = os.environ.get("LDAP_BINDDN","cn=manager,dc=example,dc=org")
# LDAP_BIND_PASS = os.environ.get("LDAP_BIND_PASS","password")
# LDAP_SEARCH_FMT = os.environ.get("LDAP_SEARCH_FMT","uid=%s")
# LDAP_ATTRS = ["cn","mail","telephoneNumber"]
# LDAP_TLS_START_TLS = False
# LDAP_TLS_CACERTDIR = ""
# LDAP_TLS_CACERTFILE = "/etc/openldap/certs/ca.crt"
# LDAP_TLS_CERTFILE = ""
# LDAP_TLS_KEYFILE = ""
# LDAP_TLS_REQUIRE_CERT = True
# LDAP_TLS_CIPHER_SUITE = ""
# BABEL_DEFAULT_LOCALE   = 'zh_CN'
# BABEL_DEFAULT_TIMEZONE = 'Asia/Shanghai'
# LANGUAGES   = {
#     'en':  'English',
#     'zh_CN':  'Chinese-Simplified',
# }
# MAINTAINERS = ['root']
# CONTACT = 'root@open-falcon.com'
# DEBUG = True


# Path: rrd/utils/logger.py
from rrd import config
import logging

#-*- coding:utf-8 -*-
# Copyright 2017 Xiaomi, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


logging.basicConfig(
        format='%(asctime)s %(levelname)s:%(message)s',
        datefmt="%Y-%m-%d %H:%M:%S",

        level=config.LOG_LEVEL)