Skip to content

Commit

Permalink
Use puts instead of Rails.logger (added flags so rubocp don't change …
Browse files Browse the repository at this point in the history
…it back)
  • Loading branch information
emrojo committed Dec 11, 2023
1 parent 07c1161 commit 359cd8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/mbrave_tags_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Class to support creation of tag groups, tag layout templates and generation of the
# mbrave.yml config needed by limber to be able to generate the mbrave UMI file at the
# end of the bioscan process.
# rubocop:disable Metrics/ClassLength
class MbraveTagsCreator
YAML_FILENAME = 'mbrave.yml'
TAG_IDENTIFIER = 'Bioscan'
Expand All @@ -26,7 +27,10 @@ def initialize(params)
end

def log_line
Rails.logger.debug yield
# We want to enforce that logs go to STDOUT while printing the barcodes
# rubocop:disable Rails/Output
puts yield
# rubocop:enable Rails/Output
end

def write_yaml(yaml_filename)
Expand Down Expand Up @@ -197,3 +201,4 @@ def process_create_tag_groups(forward_filename, reverse_filename, version)
end
extend StaticMethods
end
# rubocop:enable Metrics/ClassLength

0 comments on commit 359cd8b

Please sign in to comment.