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