Logging
This commit is contained in:
@@ -6,6 +6,7 @@ module Adamantium
|
||||
class CreateCheckin < Command
|
||||
include Deps["repos.post_repo",
|
||||
"post_utilities.slugify",
|
||||
"logger",
|
||||
renderer: "renderers.markdown",
|
||||
add_post_syndication_source: "commands.posts.add_syndication_source"
|
||||
]
|
||||
@@ -17,6 +18,8 @@ module Adamantium
|
||||
post_params = prepare_params(params: post)
|
||||
created_post = post_repo.create(post_params)
|
||||
|
||||
logger.info("CREATED: #{created_post.inspect}")
|
||||
|
||||
syndication_sources.each do |url|
|
||||
add_post_syndication_source.call(created_post.id, :swarm, url)
|
||||
end
|
||||
|
Reference in New Issue
Block a user