From b91df2b22a05097b67994ae3f7a7b99fc6de30d4 Mon Sep 17 00:00:00 2001 From: Tom Scavo Date: Wed, 26 Apr 2017 12:28:37 -0400 Subject: [PATCH] Log error messages forquiet failure mode --- lib/http_tools.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/http_tools.sh b/lib/http_tools.sh index ba073b0..a8fdcb6 100755 --- a/lib/http_tools.sh +++ b/lib/http_tools.sh @@ -58,7 +58,7 @@ # # This function requires the following library file: # -# command_paths.sh +# core_lib.sh # # The library file must be sourced BEFORE calling this function. # @@ -247,7 +247,7 @@ conditional_get () { # quiet failure mode if $cache_only_mode; then - echo "ERROR: $FUNCNAME: resource not cached: $location" >&2 + print_log_message "$FUNCNAME: ERROR: resource not cached: $location" "$log_file" return 1 fi @@ -403,7 +403,7 @@ conditional_get () { elif [ "$response_code" = "304" ]; then # quiet failure mode if $force_output_mode; then - echo "ERROR: $FUNCNAME: resource not modified: $location" >&2 + print_log_message "$FUNCNAME: ERROR: resource not modified: $location" "$log_file" return 1 fi @@ -433,7 +433,7 @@ conditional_get () { # # This function requires the following library files: # -# command_paths.sh +# core_lib.sh # # These library files must be sourced BEFORE calling this function. # @@ -475,7 +475,7 @@ get_response_code () { # # This function requires the following library files: # -# command_paths.sh +# core_lib.sh # # These library files must be sourced BEFORE calling this function. #