Skip to content

Commit c774d5a

Browse files
Merge pull request #129 from opensciencegrid/pr/no-double-exit-message
Don't print the error/exit message twice -- logging has already been set up so there's no need to print the same message to stderr
2 parents 8d1faeb + bd282c0 commit c774d5a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

scripts/osg-configure

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def real_error_exit(message="Critical error occurred, exiting", exception=None):
4646
logging.critical(message)
4747
if exception is not None:
4848
logging.critical("Exception: %s" % (exception))
49-
sys.stderr.write("%s\n" % message)
5049
sys.stderr.write("You may be able to get more details rerunning %s with the -d " \
5150
"option and/or by examining %s\n" % (sys.argv[0], LOG_FILE))
5251
sys.exit(1)
@@ -55,7 +54,6 @@ def real_error_exit(message="Critical error occurred, exiting", exception=None):
5554
def real_normal_exit(message="Configuration completed, exiting..."):
5655
"""Function to do all the cleanup and exit"""
5756
logging.info(message)
58-
sys.stdout.write("%s\n" % message)
5957
sys.exit(0)
6058

6159

0 commit comments

Comments
 (0)