Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lib/jnpr/jsnapy/jsnapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ def __init__(self):
"""
taking parameters from command line
"""

# need to call this function to initialize logging
# This is needed at the top to have loggin enables for JSNAPy logger
setup_logging.setup_logging()

self.q = queue.Queue()
self.snap_q = queue.Queue()
self.log_detail = {'hostname': None}
Expand Down Expand Up @@ -178,8 +183,7 @@ def __init__(self):

DirStore.custom_dir=self.args.folder

# need to call this function to initialize logging
setup_logging.setup_logging()


def get_version(self):
"""
Expand Down