Skip to content

Commit

Permalink
Change log level of mef_eline.storehouse
Browse files Browse the repository at this point in the history
Some log messages were changed from info to debug,
disabling unnecessary messages
Fixes kytos#25
  • Loading branch information
ajoaoff committed Jul 14, 2021
1 parent 121789c commit faa4978
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions storehouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ def create_box(self):
'data': {}}
event = KytosEvent(name='kytos.storehouse.create', content=content)
self.controller.buffers.app.put(event)
log.info('Create box from storehouse.')
log.debug('Create box from storehouse.')

def _create_box_callback(self, _event, data, error):
"""Execute the callback to handle create_box."""
if error:
log.error(f'Can\'t create box with namespace {self.namespace}')

self.box = data
log.info(f'Box {self.box.box_id} was created in {self.namespace}.')
log.debug(f'Box {self.box.box_id} was created in {self.namespace}.')

def list_stored_boxes(self):
"""List all boxes using the current namespace."""
Expand Down Expand Up @@ -109,4 +109,4 @@ def _save_evc_callback(self, _event, data, error):
if error:
log.error(f'Can\'t update the {self.box.box_id}')

log.info(f'Box {data.box_id} was updated.')
log.debug(f'Box {data.box_id} was updated.')

0 comments on commit faa4978

Please sign in to comment.