Browse Source

Log level is uppercased

aeris 1 year ago
parent
commit
50b8b57065
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/cross-post.rb

+ 1
- 1
lib/cross-post.rb View File

@@ -11,7 +11,7 @@ OpenURI::Buffer.const_set 'StringMax', 0
11 11
 
12 12
 class CrossPost
13 13
 	LOGGER = Logger.new STDERR
14
-	LOGGER.level = Logger.const_get ENV.fetch('LOG', 'INFO')
14
+	LOGGER.level = Logger.const_get ENV.fetch('LOG', 'INFO').upcase
15 15
 	LOGGER.formatter = proc do |severity, time, _, msg|
16 16
 		time = time.strftime '%Y-%m-%dT%H:%M:%S.%6N'.freeze
17 17
 		"#{time} #{severity} #{msg}\n"

Loading…
Cancel
Save