diff --git a/gnes/service/base.py b/gnes/service/base.py index 89a1674e..431100ed 100644 --- a/gnes/service/base.py +++ b/gnes/service/base.py @@ -317,9 +317,7 @@ def _auto_dump(self): self.logger.info( 'auto-dumping the new change of the model every %ds...' % self.args.dump_interval) self.dump() - time.sleep(self.args.dump_interval) - else: - time.sleep(1) + time.sleep(self.args.dump_interval) def dump(self): if not self.args.read_only: @@ -334,7 +332,7 @@ def dump(self): def _hook_warn_body_type_change(self, msg: 'gnes_pb2.Message', *args, **kwargs): new_type = msg.WhichOneof('body') if new_type != self._msg_old_type: - self.logger.warning('message body type has changed from %s to %s' % (self._msg_old_type, new_type)) + self.logger.warning('message body type has changed from "%s" to "%s"' % (self._msg_old_type, new_type)) @handler.register_hook(hook_type='post') def _hook_sort_response(self, msg: 'gnes_pb2.Message', *args, **kwargs):