Skip to content

Commit

Permalink
Minor logging improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
atsag committed Nov 11, 2024
1 parent f287007 commit 90c18b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void publish (String json_string_content, Collection<String> application_
try {
json_object = (JSONObject) parser.parse(json_string_content);
} catch (ParseException p) {
log.warn( "Could not parse the string content to be published to the broker as json, which is the following: "+json_string_content);
log.warn( "publish: Could not parse the string content to be published to the broker as json, which is the following: "+json_string_content);
}
if (!is_publisher_null()) {
private_publisher_instance.send(json_object);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public Map publish_for_response (String json_string_content, Collection<String>
json_object = (JSONObject) parser.parse(json_string_content);
successful_json_parsing = true;
} catch (ParseException p) {
log.warn("Could not parse the string content to be published to the broker as json, which is the following: " + json_string_content);
log.warn("publish_for_response-if: Could not parse the string content to be published to the broker as json, which is the following: " + json_string_content);
}
metadata.put("jobId",application_name);
payload.put("metaData",metadata);
Expand All @@ -124,7 +124,7 @@ public Map publish_for_response (String json_string_content, Collection<String>
json_object = (JSONObject) parser.parse(json_string_content);

} catch (ParseException p) {
log.warn("Could not parse the string content to be published to the broker as json, which is the following: " + json_string_content);
log.warn("publish_for_response-else: Could not parse the string content to be published to the broker as json, which is the following: " + json_string_content);
}
if (private_publisher_instance != null) {
log.info("Sending new synchronous message\n"+json_object.toJSONString());
Expand Down

0 comments on commit 90c18b0

Please sign in to comment.