Skip to content

Commit

Permalink
generate-identity.sh - silence curl
Browse files Browse the repository at this point in the history
This generates noise in the logs, we better silence curl.
  • Loading branch information
JanneKiiskila committed Aug 16, 2023
1 parent 3484234 commit 02fad8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Izuma Edge utilities 2.2.1
1. [identity-tool] Silence `curl` to have less noise in logs.

## Izuma Edge utilities 2.2.0
1. [edge-info] Add support for different localhost:<port>/status ports (snap port `8081`, edge-core only `8080` and LmP `9091`).
1. [edge-info] Removed unused files.
Expand Down
2 changes: 1 addition & 1 deletion identity-tools/generate-identity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function jsonValue() {
}

getEdgeStatus() {
[[ -z "$edge_status" ]] && edge_status=$(curl http://localhost:${EDGE_CORE_PORT}/status)
[[ -z "$edge_status" ]] && edge_status=$(curl -s http://localhost:${EDGE_CORE_PORT}/status)
OU=`echo $edge_status | jq -r '."account-id"'`
internalid=`echo $edge_status | jq -r '."internal-id"'`
lwm2mserveruri=`echo $edge_status | jq -r '."lwm2m-server-uri"' | cut -d':' -f 2 | sed 's/^\/\///'`
Expand Down

0 comments on commit 02fad8d

Please sign in to comment.