Skip to content

Commit

Permalink
[agent] Improved 2 more connection failure messages
Browse files Browse the repository at this point in the history
(register and report-status)
  • Loading branch information
nemesifier committed Jan 20, 2017
1 parent 6955d5b commit 7c4cb8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openwisp-config/files/openwisp.agent
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ register() {
local exit_code=$?
# report eventual failures and return
if [ "$exit_code" != "0" ]; then
logger -s "Failed to connect to controller (register): curl exit code $exit_code" \
logger -s "Failed to connect to controller during registration: curl exit code $exit_code" \
-t openwisp \
-p daemon.err
return 1
Expand Down Expand Up @@ -233,7 +233,7 @@ report_status() {
done

if [ "$exit_code" != "0" ]; then
logger -s "Failed to connect to controller (report-status): curl exit code $exit_code" \
logger -s "Failed to connect to controller during report-status: curl exit code $exit_code" \
-t openwisp \
-p daemon.err
return 2
Expand Down

0 comments on commit 7c4cb8b

Please sign in to comment.