aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/pal.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/presentation/pal.py')
-rw-r--r--resources/tools/presentation/pal.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/resources/tools/presentation/pal.py b/resources/tools/presentation/pal.py
index a6b4d58bcf..72493cb0d3 100644
--- a/resources/tools/presentation/pal.py
+++ b/resources/tools/presentation/pal.py
@@ -28,6 +28,7 @@ from generator_files import generate_files
from static_content import prepare_static_content
from generator_report import generate_report
from generator_CPTA import generate_cpta
+from generator_alerts import Alerting, AlertingError
def parse_args():
@@ -111,14 +112,22 @@ def main():
logging.info("Successfully finished.")
elif spec.output["output"] == "CPTA":
sys.stdout.write(generate_cpta(spec, data))
+ alert = Alerting(spec)
+ alert.generate_alerts()
logging.info("Successfully finished.")
ret_code = 0
- except (KeyError, ValueError, PresentationError) as err:
- logging.info("Finished with an error.")
+ except AlertingError as err:
+ logging.critical("Finished with an alerting error.")
+ logging.critical(repr(err))
+ except PresentationError as err:
+ logging.critical("Finished with an PAL error.")
+ logging.critical(repr(err))
+ except (KeyError, ValueError) as err:
+ logging.critical("Finished with an error.")
logging.critical(repr(err))
except Exception as err:
- logging.info("Finished with an unexpected error.")
+ logging.critical("Finished with an unexpected error.")
logging.critical(repr(err))
finally:
if spec is not None: