only log private stuff to debug

closes #6069
This commit is contained in:
Benjamin Neff 2015-06-06 20:15:57 +02:00 committed by Jonne Haß
parent 0b5bf2e340
commit 2571b042c6

View file

@ -44,8 +44,9 @@ class Postzord::Receiver::Private < Postzord::Receiver
def receive_object def receive_object
obj = @object.receive(@user, @author) obj = @object.receive(@user, @author)
Notification.notify(@user, obj, @author) if obj.respond_to?(:notification_type) Notification.notify(@user, obj, @author) if obj.respond_to?(:notification_type)
logger.info "user:#{@user.id} successfully received #{@object.class} from person #{@sender.guid}: " \ logger.info "user:#{@user.id} successfully received #{@object.class} from person #{@sender.guid}" \
"#{@object.inspect}" "#{": #{@object.guid}" if @object.respond_to?(:guid)}"
logger.debug "received: #{@object.inspect}"
obj obj
end end