Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HAWQ-1418. Move print executing command after setup logging #1201

Merged
merged 1 commit into from
Mar 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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