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:
commit
03d0e90db5
7 changed files with 9 additions and 9 deletions
|
@ -18,7 +18,7 @@ except ImportError:
|
||||||
try:
|
try:
|
||||||
from emanesh.events.commeffectevent import CommEffectEvent
|
from emanesh.events.commeffectevent import CommEffectEvent
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logger.warn("compatible emane python bindings not installed")
|
logger.debug("compatible emane python bindings not installed")
|
||||||
|
|
||||||
|
|
||||||
def convert_none(x):
|
def convert_none(x):
|
||||||
|
|
|
@ -42,7 +42,7 @@ except ImportError:
|
||||||
from emanesh.events import LocationEvent
|
from emanesh.events import LocationEvent
|
||||||
from emanesh.events.eventserviceexception import EventServiceException
|
from emanesh.events.eventserviceexception import EventServiceException
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logger.warn("compatible emane python bindings not installed")
|
logger.debug("compatible emane python bindings not installed")
|
||||||
|
|
||||||
EMANE_MODELS = [
|
EMANE_MODELS = [
|
||||||
EmaneRfPipeModel,
|
EmaneRfPipeModel,
|
||||||
|
|
|
@ -9,7 +9,7 @@ except ImportError:
|
||||||
try:
|
try:
|
||||||
from emanesh import manifest
|
from emanesh import manifest
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logger.warn("compatible emane python bindings not installed")
|
logger.debug("compatible emane python bindings not installed")
|
||||||
|
|
||||||
|
|
||||||
def _type_value(config_type):
|
def _type_value(config_type):
|
||||||
|
|
|
@ -16,7 +16,7 @@ except ImportError:
|
||||||
try:
|
try:
|
||||||
from emanesh.events import LocationEvent
|
from emanesh.events import LocationEvent
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logger.warn("compatible emane python bindings not installed")
|
logger.debug("compatible emane python bindings not installed")
|
||||||
|
|
||||||
|
|
||||||
class EmaneNet(PyCoreNet):
|
class EmaneNet(PyCoreNet):
|
||||||
|
|
|
@ -13,7 +13,7 @@ def _log_map():
|
||||||
name = None
|
name = None
|
||||||
if value:
|
if value:
|
||||||
name = value.__name__
|
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):
|
def _convert_map(x, y):
|
||||||
|
|
|
@ -223,7 +223,7 @@ class ServiceManager(object):
|
||||||
:return: nothing
|
:return: nothing
|
||||||
"""
|
"""
|
||||||
name = service.name
|
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
|
# avoid duplicate services
|
||||||
if name in cls.services:
|
if name in cls.services:
|
||||||
|
@ -232,7 +232,7 @@ class ServiceManager(object):
|
||||||
# validate dependent executables are present
|
# validate dependent executables are present
|
||||||
for executable in service.executables:
|
for executable in service.executables:
|
||||||
if not which(executable):
|
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))
|
raise ValueError("service(%s) missing executable: %s" % (service.name, executable))
|
||||||
|
|
||||||
# make service available
|
# make service available
|
||||||
|
@ -269,7 +269,7 @@ class ServiceManager(object):
|
||||||
cls.add(service)
|
cls.add(service)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
service_errors.append(service.name)
|
service_errors.append(service.name)
|
||||||
logger.warn("not loading service: %s", e)
|
logger.debug("not loading service: %s", e)
|
||||||
return service_errors
|
return service_errors
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ from core.service import ServiceManager
|
||||||
try:
|
try:
|
||||||
from docker import Client
|
from docker import Client
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logger.warn("missing python docker bindings")
|
logger.debug("missing python docker bindings")
|
||||||
|
|
||||||
|
|
||||||
class DockerService(CoreService):
|
class DockerService(CoreService):
|
||||||
|
|
Loading…
Add table
Reference in a new issue