Skip to content

Commit

Permalink
HAWQ-1418. Move print executing command after setup logging
Browse files Browse the repository at this point in the history
  • Loading branch information
wcl14 committed Mar 28, 2017
1 parent 46a9621 commit 1e9ea99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/bin/hawqregister
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ except ImportError, e:
sys.stderr.write('Cannot import module, please check that you have source greenplum_path.sh\n')
sys.exit(2)

# setup logging
logger = get_default_logger()
EXECNAME = os.path.split(__file__)[-1]
setup_tool_logging(EXECNAME, getLocalHostname(), getUserName())

# print executing command
cmd = "Executing Command: ";
for arg in sys.argv:
cmd += arg + " "
logger.info(cmd);

# setup logging
logger = get_default_logger()
EXECNAME = os.path.split(__file__)[-1]
setup_tool_logging(EXECNAME, getLocalHostname(), getUserName())

def option_parser():
'''option parser'''
parser = OptParser(option_class=OptChecker,
Expand Down

0 comments on commit 1e9ea99

Please sign in to comment.