From 359cd8b7f40dad4987f61411c519c0f6315a2912 Mon Sep 17 00:00:00 2001 From: Eduardo Martin Rojo Date: Mon, 11 Dec 2023 14:29:08 +0000 Subject: [PATCH] Use puts instead of Rails.logger (added flags so rubocp don't change it back) --- lib/mbrave_tags_creator.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/mbrave_tags_creator.rb b/lib/mbrave_tags_creator.rb index f2a81261a8..c2c1558af4 100644 --- a/lib/mbrave_tags_creator.rb +++ b/lib/mbrave_tags_creator.rb @@ -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' @@ -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) @@ -197,3 +201,4 @@ def process_create_tag_groups(forward_filename, reverse_filename, version) end extend StaticMethods end +# rubocop:enable Metrics/ClassLength