Skip to content

Commit

Permalink
make it clear in log if using Singularity (dmwm#5335)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte committed Oct 22, 2024
1 parent ded839b commit 13bf82f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/python/CRABClient/Commands/SubCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,12 @@ def __init__(self, logger, cmdargs=None, disable_interspersed_args=False):
except Exception as ex: # pylint: disable=unused-variable
localOS = "Unknown Operating System"
self.logger.debug("CRAB Client version: %s", __version__)
self.logger.debug("Running on: " + localSystem + " - " + localOS)
self.logger.debug("Running on: " + localSystem )
if 'SINGULARITY_NAME' in os.environ:
self.logger.debug("Using SINGULARITY image: " + os.environ['SINGULARITY_NAME'])
else:
self.logger.debug("Not using Singularity")
self.logger.debug("Operating System: " + localOS)
self.logger.debug("Executing command: '%s'" % str(self.name))

# Get the command configuration.
Expand Down

0 comments on commit 13bf82f

Please sign in to comment.