Merge pull request #198 from coreemu/bugfix/reduce-default-core-daemon-logging

quiet core-daemon by replacing warn messages with debug
This commit is contained in:
bharnden 2018-11-14 15:26:50 -08:00 committed by GitHub
commit 03d0e90db5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 9 deletions

View file

@ -18,7 +18,7 @@ except ImportError:
try:
from emanesh.events.commeffectevent import CommEffectEvent
except ImportError:
logger.warn("compatible emane python bindings not installed")
logger.debug("compatible emane python bindings not installed")
def convert_none(x):

View file

@ -42,7 +42,7 @@ except ImportError:
from emanesh.events import LocationEvent
from emanesh.events.eventserviceexception import EventServiceException
except ImportError:
logger.warn("compatible emane python bindings not installed")
logger.debug("compatible emane python bindings not installed")
EMANE_MODELS = [
EmaneRfPipeModel,

View file

@ -9,7 +9,7 @@ except ImportError:
try:
from emanesh import manifest
except ImportError:
logger.warn("compatible emane python bindings not installed")
logger.debug("compatible emane python bindings not installed")
def _type_value(config_type):

View file

@ -16,7 +16,7 @@ except ImportError:
try:
from emanesh.events import LocationEvent
except ImportError:
logger.warn("compatible emane python bindings not installed")
logger.debug("compatible emane python bindings not installed")
class EmaneNet(PyCoreNet):

View file

@ -13,7 +13,7 @@ def _log_map():
name = None
if value:
name = value.__name__
logger.info("node type (%s) - class (%s)", key.name, name)
logger.debug("node type (%s) - class (%s)", key.name, name)
def _convert_map(x, y):

View file

@ -223,7 +223,7 @@ class ServiceManager(object):
:return: nothing
"""
name = service.name
logger.info("loading service: class(%s) name(%s)", service.__name__, name)
logger.debug("loading service: class(%s) name(%s)", service.__name__, name)
# avoid duplicate services
if name in cls.services:
@ -232,7 +232,7 @@ class ServiceManager(object):
# validate dependent executables are present
for executable in service.executables:
if not which(executable):
logger.warn("service(%s) missing executable: %s", service.name, executable)
logger.debug("service(%s) missing executable: %s", service.name, executable)
raise ValueError("service(%s) missing executable: %s" % (service.name, executable))
# make service available
@ -269,7 +269,7 @@ class ServiceManager(object):
cls.add(service)
except ValueError as e:
service_errors.append(service.name)
logger.warn("not loading service: %s", e)
logger.debug("not loading service: %s", e)
return service_errors

View file

@ -104,7 +104,7 @@ from core.service import ServiceManager
try:
from docker import Client
except ImportError:
logger.warn("missing python docker bindings")
logger.debug("missing python docker bindings")
class DockerService(CoreService):