Commit 8bbdc561 authored by j.hoerdt's avatar j.hoerdt
Browse files

log created pids

parent a5fd9339
......@@ -43,7 +43,9 @@ class Sensor {
private String register_new_pid(Record rec) throws Exception {
String response_body = request_to_registry("PUT", Main.prefix_for_new_pids + UUID.randomUUID().toString(), rec);
return new Gson().fromJson(response_body, JsonObject.class).get("handle").getAsString();
var created_pid = new Gson().fromJson(response_body, JsonObject.class).get("handle").getAsString();"created pid: " + created_pid);
return created_pid;
private void update_pid(String pid, Record rec) throws Exception {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment