From 725b46e2cf62c35c4e5e684582b9fabb8261f8e3 Mon Sep 17 00:00:00 2001 From: Adam Cantor Date: Tue, 23 Jul 2024 10:47:21 -0400 Subject: [PATCH] debugging --- mmeds/tools/analysis.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mmeds/tools/analysis.py b/mmeds/tools/analysis.py index 3df506da..64235d7b 100755 --- a/mmeds/tools/analysis.py +++ b/mmeds/tools/analysis.py @@ -433,10 +433,14 @@ def run_analysis(self): if self.testing or not (self.run_on_node == -1): Logger.debug('I {} am about to run'.format(self.name)) jobfile.chmod(0o770) + with open(jobfile, 'r') as f: + Logger.debug(f"Jobfile:\n{f.read()}") # Send the output to the error log with open(self.get_file('errorlog', True), 'w+', buffering=1) as f: # Run the command run([jobfile], stdout=f, stderr=f) + with open(self.get_file('errorlog', True), 'r') as f: + Logger.debug(f"Job stdout/err:\n{f.read()}") Logger.debug('I {} have finished running'.format(self.name)) else: # Create a file to execute the submission