Skip to content

Commit bff8b70

Browse files
authored
Define log level input that sets environment variable (#540)
* Define log level input that sets environment variable * Add default log level of 20
1 parent d7cb165 commit bff8b70

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

cwl/stage-in-daac/stage-in.cwl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ requirements:
1212
envDef:
1313
DOWNLOAD_DIR: $(runtime.outdir)/$(inputs.download_dir)
1414
STAC_JSON: $(inputs.stac_json)
15-
LOG_LEVEL: '10'
15+
LOG_LEVEL: $(inputs.log_level)
1616
PARALLEL_COUNT: '-1'
1717
DOWNLOAD_RETRY_WAIT_TIME: '30'
1818
DOWNLOAD_RETRY_TIMES: '5'
@@ -29,6 +29,9 @@ requirements:
2929
inputs:
3030
download_dir:
3131
type: string
32+
log_level:
33+
default: '20'
34+
type: string
3235
stac_json:
3336
type: string
3437

cwl/stage-out-stac-catalog/stage-out.cwl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ requirements:
1717
envDef:
1818
STAGING_BUCKET: $(inputs.staging_bucket)
1919
CATALOG_FILE: '/tmp/outputs/catalog.json'
20-
LOG_LEVEL: '10'
20+
LOG_LEVEL: $(inputs.log_level)
2121
PARALLEL_COUNT: '-1'
2222
OUTPUT_DIRECTORY: $(runtime.outdir)
2323
PROJECT: $(inputs.project)
@@ -27,6 +27,9 @@ requirements:
2727
BASE_DIRECTORY: '/tmp/outputs'
2828

2929
inputs:
30+
log_level:
31+
default: '20'
32+
type: string
3033
project:
3134
type: string
3235
venue:

0 commit comments

Comments
 (0)