lib/rsqoot/category.rb in rsqoot-0.5.1 vs lib/rsqoot/category.rb in rsqoot-0.5.2
- old
+ new
@@ -9,10 +9,12 @@
query = options.delete(:query)
if categories_not_latest?(options)
@rsqoot_categories = get('categories', options, SqootCategory)
@rsqoot_categories = @rsqoot_categories.categories.map(&:category) if @rsqoot_categories
end
- query.present? ? query_categories(query) : @rsqoot_categories
+ result = query.present? ? query_categories(query) : @rsqoot_categories
+ logger({uri: sqoot_query_uri, records: result, type: 'categories', opts: options})
+ result
end
end
end
\ No newline at end of file