diff options
author | 2021-10-01 18:45:17 +0100 | |
---|---|---|
committer | 2021-10-15 14:26:03 +0000 | |
commit | 1b61e72f6506de7c1f64098dd25adf7af7b31dc1 (patch) | |
tree | 53036d7bb556547059f1207ec7c8a42959cd05a7 /catalog-be/src/main/resources/scripts/sdcBePy/common/logger.py | |
parent | 08ba15073ff236c67303d084d56a026975ba1a25 (diff) |
Import multiple node types in a single endpoint
Change-Id: I7aa914d459a083146b92ef82197c8df265b8c5b6
Issue-ID: SDC-3752
Signed-off-by: andre.schmid <andre.schmid@est.tech>
Diffstat (limited to 'catalog-be/src/main/resources/scripts/sdcBePy/common/logger.py')
-rw-r--r-- | catalog-be/src/main/resources/scripts/sdcBePy/common/logger.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/catalog-be/src/main/resources/scripts/sdcBePy/common/logger.py b/catalog-be/src/main/resources/scripts/sdcBePy/common/logger.py index 17ef9afafb..2508d9d9c4 100644 --- a/catalog-be/src/main/resources/scripts/sdcBePy/common/logger.py +++ b/catalog-be/src/main/resources/scripts/sdcBePy/common/logger.py @@ -12,8 +12,11 @@ def debug(desc, *args): print(desc, join_strings(args)) -def log(desc, arg): - print(desc, arg) +def log(desc, arg=None): + if arg: + print(desc, arg) + else: + print(desc) def print_and_exit(error_code, error_desc): |