Skip to content

Commit

Permalink
Explicit value check for logging (#40)
Browse files Browse the repository at this point in the history
* Explicit value check for logging
* Update to go1.18
  • Loading branch information
stephen-soltesz authored Feb 28, 2023
1 parent f2a8212 commit bb17bd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Dockerfile.minimal
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM golang:1.15-buster
FROM golang:1.18

# Install script_exporter and dependencies.
RUN go get github.com/m-lab/script_exporter
RUN go get github.com/m-lab/ndt5-client-go/cmd/ndt5-client
RUN go get github.com/m-lab/locate/cmd/monitoring-token
RUN go install github.com/m-lab/script_exporter@v1.2.0
RUN go install github.com/m-lab/ndt5-client-go/cmd/ndt5-client@v0.1.0
RUN go install github.com/m-lab/locate/cmd/monitoring-token@v0.14.10

# Install java for the wehe cli client, and clone client repo
# Install tini: https://github.com/krallin/tini
Expand Down
4 changes: 2 additions & 2 deletions cache_exit_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ if [[ -z ${2} ]]; then
exit $STATE_CRITICAL
fi

if [[ -n "$LOGX_DEBUG" ]] ; then
if [[ "$LOGX_DEBUG" == "true" ]] ; then
# Enable additional execution logs for debugging.
set -x
exec 1>> /tmp/${TARGET}.log 2>&1
exec 1> /tmp/${TARGET}.log 2>&1
fi

set -u
Expand Down

0 comments on commit bb17bd0

Please sign in to comment.