diff --git a/run_on_maap.py b/run_on_maap.py index a6b22d9a1f5337b1fe808c392f74305f1f4a5450..f5c21351694d6ad5de4161471dfd53235e0a9d6e 100644 --- a/run_on_maap.py +++ b/run_on_maap.py @@ -154,11 +154,13 @@ def main( # Set up logging with both file and console handlers logger = logging.getLogger() - logger.setLevel(logging.INFO) + logger.setLevel(logging.DEBUG) # File handler with timestamps file_handler = logging.FileHandler(filename=output_dir / "run.log", mode="w") + file_handler.setLevel(logging.DEBUG) + file_handler.setFormatter( logging.Formatter("%(asctime)s - %(message)s", datefmt="%Y-%m-%d %H:%M:%S") @@ -167,6 +169,7 @@ def main( # Console handler without timestamps console_handler = logging.StreamHandler() console_handler.setFormatter(logging.Formatter("%(message)s")) + console_handler.setLevel(logging.INFO) # Add both handlers logger.addHandler(file_handler)