Skip to content

Commit bd282c0

Browse files
committed
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
1 parent c825abf commit bd282c0

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
@@ -48,7 +48,6 @@ def real_error_exit(message="Critical error occurred, exiting", exception=None):
4848
logging.critical(message)
4949
if exception is not None:
5050
logging.critical("Exception: %s" % (exception))
51-
sys.stderr.write("%s\n" % message)
5251
sys.stderr.write("You may be able to get more details rerunning %s with the -d " \
5352
"option and/or by examining %s\n" % (sys.argv[0], LOG_FILE))
5453
sys.exit(1)
@@ -57,7 +56,6 @@ def real_error_exit(message="Critical error occurred, exiting", exception=None):
5756
def real_normal_exit(message="Configuration completed, exiting..."):
5857
"""Function to do all the cleanup and exit"""
5958
logging.info(message)
60-
sys.stdout.write("%s\n" % message)
6159
sys.exit(0)
6260

6361

0 commit comments

Comments
 (0)