Skip to content
Permalink
Browse files

fix(service): log error in base service

  • Loading branch information...
hanxiao committed Aug 27, 2019
1 parent 8d2fdb6 commit a735a719d5ce4f3dc5c38eef6395ee3f4fb312b0
Showing with 2 additions and 2 deletions.
  1. +1 −1 gnes/cli/parser.py
  2. +1 −1 gnes/service/base.py
@@ -241,7 +241,7 @@ def _set_grpc_parser(parser=None):
def set_grpc_service_parser(parser=None):
if not parser:
parser = set_base_parser()
_set_loadable_service_parser(parser)
set_service_parser(parser)
_set_grpc_parser(parser)
parser.add_argument('--pb2_path',
type=str,
@@ -212,7 +212,7 @@ def _get_event(self):

def __init__(self, args):
super().__init__()
if args.py_path:
if 'py_path' in args and args.py_path:
PathImporter.add_modules(*args.py_path)
self.args = args
self.logger = set_logger(self.__class__.__name__, self.args.verbose)

0 comments on commit a735a71

Please sign in to comment.
You can’t perform that action at this time.