Log post creation

This commit is contained in:
2023-04-10 14:02:08 +10:00
parent 4729066bbc
commit d253f6f3ea
2 changed files with 4 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ module Adamantium
include Deps[
"settings",
"logger",
"post_utilities.slugify",
"repos.post_repo",
post_param_parser: "param_parser.micropub_post",
@@ -37,6 +38,8 @@ module Adamantium
post_params = prepare_params(req_entity.to_h)
validation = contract.call(post_params)
logger.info(req.params.inspect)
if validation.success?
command.call(validation.to_h).bind do |post|
res.status = 201