Skip to content

Commit

Permalink
remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Sep 26, 2018
1 parent 8408399 commit 47b3b8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/controllers/dois_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def validate

def create
logger = Logger.new(STDOUT)
logger.info safe_params.inspect
# logger.info safe_params.inspect
@doi = Doi.new(safe_params)
authorize! :create, @doi

Expand Down
4 changes: 1 addition & 3 deletions app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,6 @@ def self.register_all_urls(limit: nil)

# update metadata when any virtual attribute has changed
def update_metadata
logger = Logger.new(STDOUT)

changed_virtual_attributes = changed & %w(author title publisher date_published additional_type resource_type_general description content_size content_format)

if changed_virtual_attributes.present?
Expand All @@ -484,7 +482,7 @@ def update_metadata
@schema_version = Array.wrap(ns).last || "http://datacite.org/schema/kernel-4"
attribute_will_change!(:xml)
end
logger.info xml

metadata.build(doi: self, xml: xml, namespace: schema_version) if xml.present?
end

Expand Down

0 comments on commit 47b3b8b

Please sign in to comment.