Skip to content

Commit

Permalink
Add logging for POST /subscriptions success-path (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
garethsb authored Nov 21, 2023
1 parent 112e7ad commit 647d4b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Development/nmos/query_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<slog::severities::info>(gate, SLOG_FLF) << "Creating subscription: " << id;
resource = insert_resource(resources, std::move(subscription)).first;
}
else
Expand All @@ -591,6 +592,8 @@ namespace nmos
{
resource->health = health_now();
}

slog::log<slog::severities::info>(gate, SLOG_FLF) << "Returning subscription: " << resource->id;
}

set_reply(res, creating ? status_codes::Created : status_codes::OK, data);
Expand Down

0 comments on commit 647d4b3

Please sign in to comment.