Skip to content

Commit 935b17f

Browse files
committed
Define log level input that sets environment variable
1 parent d7cb165 commit 935b17f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 3 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,8 @@ requirements:
2929
inputs:
3030
download_dir:
3131
type: string
32+
log_level:
33+
type: string
3234
stac_json:
3335
type: string
3436

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

Lines changed: 3 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,8 @@ requirements:
2727
BASE_DIRECTORY: '/tmp/outputs'
2828

2929
inputs:
30+
log_level:
31+
type: string
3032
project:
3133
type: string
3234
venue:

0 commit comments

Comments
 (0)