Beispiel #1
0
import logging

from usm_common.config import UsmConfig
config = UsmConfig()


FORMAT = "%(asctime)s - %(levelname)s - %(name)s %(message)s"
log = logging.getLogger('gthulhu')
handler = logging.FileHandler(config.get('gthulhu', 'log_path'))
handler.setFormatter(logging.Formatter(FORMAT))
log.addHandler(handler)
log.setLevel(logging.getLevelName(config.get('gthulhu', 'log_level')))
Beispiel #2
0
from usm_common.salt_wrapper import client_config
from usm_common.config import UsmConfig

# A config instance for use from within the manager service
config = UsmConfig()

# A salt config instance for places we'll need the sock_dir
salt_config = client_config(config.get("gthulhu", "salt_config_path"))