Skip to content

Commit

Permalink
Log error messages forquiet failure mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Scavo committed Apr 26, 2017
1 parent 26d76b6 commit b91df2b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/http_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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.
#
Expand Down Expand Up @@ -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.
#
Expand Down

0 comments on commit b91df2b

Please sign in to comment.