From 456d3f6a849b0547abc450c809f74cf844d9263d Mon Sep 17 00:00:00 2001 From: Alex Axthelm Date: Wed, 25 Sep 2024 12:37:19 +0200 Subject: [PATCH 1/3] Add params to logs --- R/parse_raw_params.R | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/R/parse_raw_params.R b/R/parse_raw_params.R index 7912d53..d7b333a 100644 --- a/R/parse_raw_params.R +++ b/R/parse_raw_params.R @@ -105,7 +105,10 @@ parse_raw_params <- function( raw_schema_file = NULL ) { # Read Params - log_trace("Processing input parameters.") + log_debug("Processing input parameters.") + log_trace( + logger::skip_formatter(paste("Input parameters:", json, collapse = " ")) + ) if (length(json) == 0L || all(json == "")) { log_error("No parameters specified.") stop("No parameters specified.") From 267d6c0deb34f30e0c9e740fe74e0115ce71dc05 Mon Sep 17 00:00:00 2001 From: Alex Axthelm Date: Wed, 25 Sep 2024 12:39:48 +0200 Subject: [PATCH 2/3] Add logging for raw input validation errors --- R/parse_raw_params.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/parse_raw_params.R b/R/parse_raw_params.R index d7b333a..cf7e168 100644 --- a/R/parse_raw_params.R +++ b/R/parse_raw_params.R @@ -134,9 +134,10 @@ parse_raw_params <- function( log_error( "Invalid raw input parameters. ", "Must include \"inherit\" key, or match full schema.", - "See schema for details.", + "See schema for details. ", raw_schema_file ) + pretty_log_jsonvalidate_errors(raw_input_validation_results) stop("Invalid raw input parameters.") } } From 33f813b4c57f7d90acd2bf9684a5a88e256e3ac5 Mon Sep 17 00:00:00 2001 From: Alex Axthelm Date: Wed, 25 Sep 2024 12:45:50 +0200 Subject: [PATCH 3/3] Increment version number to 0.0.0.9014 --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 5698fc2..6127d24 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: pacta.workflow.utils Title: Utility functions for PACTA workflows -Version: 0.0.0.9013 +Version: 0.0.0.9014 Authors@R: c(person(given = "Alex", family = "Axthelm",