updated logging usage, to use the library directly and avoid imposing a core config by default, allowing users of the core library to configure logging as desired
This commit is contained in:
parent
37f747c212
commit
7aee2b2ba7
44 changed files with 552 additions and 527 deletions
|
@ -97,14 +97,15 @@ Limitations:
|
|||
depending on how many nodes you have.
|
||||
"""
|
||||
|
||||
from core import logger
|
||||
import logging
|
||||
|
||||
from core.service import CoreService
|
||||
from core.service import ServiceManager
|
||||
|
||||
try:
|
||||
from docker import Client
|
||||
except ImportError:
|
||||
logger.debug("missing python docker bindings")
|
||||
logging.debug("missing python docker bindings")
|
||||
|
||||
|
||||
class DockerService(CoreService):
|
||||
|
@ -154,7 +155,7 @@ done
|
|||
|
||||
@classmethod
|
||||
def on_load(cls):
|
||||
logger.debug("loading custom docker services")
|
||||
logging.debug("loading custom docker services")
|
||||
|
||||
if "Client" in globals():
|
||||
client = Client(version="1.10")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue