From 647d4b399dee2bdf7f4a1fe0c7f8bc5988db9828 Mon Sep 17 00:00:00 2001 From: Gareth Sylvester-Bradley <31761158+garethsb@users.noreply.github.com> Date: Tue, 21 Nov 2023 00:46:30 +0000 Subject: [PATCH] Add logging for POST /subscriptions success-path (#354) --- Development/nmos/query_api.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Development/nmos/query_api.cpp b/Development/nmos/query_api.cpp index 0e4da6cb4..6b30a8c38 100644 --- a/Development/nmos/query_api.cpp +++ b/Development/nmos/query_api.cpp @@ -574,6 +574,7 @@ namespace nmos // never expire persistent subscriptions, they are only deleted when explicitly requested nmos::resource subscription{ version, nmos::types::subscription, data, nmos::fields::persist(data) }; + slog::log(gate, SLOG_FLF) << "Creating subscription: " << id; resource = insert_resource(resources, std::move(subscription)).first; } else @@ -591,6 +592,8 @@ namespace nmos { resource->health = health_now(); } + + slog::log(gate, SLOG_FLF) << "Returning subscription: " << resource->id; } set_reply(res, creating ? status_codes::Created : status_codes::OK, data);