smartcloud 0.0.183 → 0.0.184

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3c539dab1e6f0c5b63e0a0c4de873ddce852dd069bb7bd7426cad1502c75d30
4
- data.tar.gz: 3e114db0743b4114e0689235fdc0d59ef3aeb5d2c7e397c7a813ddb4a99bb332
3
+ metadata.gz: 9b036a69c41986c8bc466401694c5602292426a2aacf28bcdccb12ff60356d02
4
+ data.tar.gz: 4be43d0d642cb6243372a2e9400ed58f9e5cf702dbfb1718388f031dbbd68227
5
5
  SHA512:
6
- metadata.gz: ae921b5751e7b60a036440f5a172e90fb5a825d273442954fd3b5eab8dc8af470ff9a202d228e2399ec35fc937ffd963e03df6b7c4922ff25fb5591c1b6cc69b
7
- data.tar.gz: 767f764ddb3f8b407e40acf4935af6a29b7c2a851753a781fae93a0a9e812d68ef6ec134053d23476a1b4dceb3451232e2d4e853bb8f4a5cf92d8451116aa429
6
+ metadata.gz: 2e8e26705bc738ce8e47e31915a76b8794be5195d8ddc1694b61ece548f39afa24c271aaf62f0a966e4bdad951207cc02e7ac211a7b87924915d67178838dbe0
7
+ data.tar.gz: 98163e53f2528d250c880c7b418af7b9d44e58ce3b0237a0039f1325433388e4c638c3f7af3c6f17f600bd553fdf06f47af85ca4d57405dbdbe09725ebe74f9b
@@ -80,13 +80,10 @@ module Smartcloud
80
80
 
81
81
  def set_logger_formatter_arrow
82
82
  logger.formatter = proc do |severity, datetime, progname, message|
83
- severity_text = (severity == 'INFO') ? "" : "#{severity}: "
84
- severity_symbols = { "DEBUG" => "\u{1f527}", "INFO" => "\u{276f}",
85
- "WARN" => "\u{2757}", "ERROR" => "\u{2b55}", "FATAL" => "\u{274c}",
86
- "UNKNOWN" => "\u{2753}"
83
+ severity_text = { "DEBUG" => "\u{1f527} #{severity}:", "INFO" => " \u{276f}", "WARN" => "\u{2757} #{severity}:",
84
+ "ERROR" => "\u{274c} #{severity}:", "FATAL" => "\u{2b55} #{severity}:", "UNKNOWN" => "\u{2753} #{severity}:"
87
85
  }
88
- symbol_text = (message == "") ? "" : severity_symbols[severity]
89
- "\t\t\t\t#{symbol_text} #{severity_text}#{message}\n"
86
+ "\t\t\t\t#{severity_text[severity]} #{message}\n"
90
87
  end
91
88
  end
92
89
 
@@ -220,13 +220,10 @@ module Smartcloud
220
220
 
221
221
  def self.prereceive_app(appname, username, oldrev, newrev, refname)
222
222
  logger.formatter = proc do |severity, datetime, progname, message|
223
- severity_text = (severity == 'INFO') ? "" : "#{severity}: "
224
- severity_symbols = { "DEBUG" => "\u{1f527}", "INFO" => "\u{276f}",
225
- "WARN" => "\u{2757}", "ERROR" => "\u{2b55}", "FATAL" => "\u{274c}",
226
- "UNKNOWN" => "\u{2753}"
223
+ severity_text = { "DEBUG" => "\u{1f527} #{severity}:", "INFO" => " \u{276f}", "WARN" => "\u{2757} #{severity}:",
224
+ "ERROR" => "\u{274c} #{severity}:", "FATAL" => "\u{2b55} #{severity}:", "UNKNOWN" => "\u{2753} #{severity}:"
227
225
  }
228
- symbol_text = (message == "") ? "" : severity_symbols[severity]
229
- "\t\t\t\t#{symbol_text} #{severity_text}#{message}\n"
226
+ "\t\t\t\t#{severity_text[severity]} #{message}\n"
230
227
  end
231
228
 
232
229
  # Load vars and environment
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.183
4
+ version: 0.0.184
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard