From 45ef076d7e878c0302c6aee334e33c77b003d146 Mon Sep 17 00:00:00 2001 From: Andreas WILM Date: Wed, 4 Oct 2017 11:57:25 +0800 Subject: [PATCH] PipelineHandler reporting if run in devel mode closes #32 --- lib/pipelines.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/pipelines.py b/lib/pipelines.py index 6d74af1..8ad8c2d 100644 --- a/lib/pipelines.py +++ b/lib/pipelines.py @@ -174,6 +174,9 @@ def __init__(self, pipeline_name, pipeline_subdir, - def_args: argparser args. only default_argparser handled, i.e. must be subset of that - logger_cmd: the logger command used in run.sh. bash's 'true' doesn't do anything. Uses downstream default with conf db-id if set to None and logging is on. """ + + if is_devel_version(): + logger.info("Running in non-production mode") self.pipeline_name = pipeline_name self.pipeline_version = get_pipeline_version()# external function