Skip to content

Commit 06c4c22

Browse files
committed
tweak the notifier log line just a little
1 parent 64f78fd commit 06c4c22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/travis/tasks/middleware/logging.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'active_support/core_ext/string/inflections'
2+
13
module Travis
24
module Tasks
35
module Middleware
@@ -10,7 +12,7 @@ def call(worker, message, queue, &block)
1012
uuid, notifier, _, payload, params = *message['args']
1113
data = Hash.new.tap do |data|
1214
data['queue'] = queue
13-
data['notifier'] = notifier.to_s.downcase.split('::')[2]
15+
data['notifier'] = notifier.to_s.underscore.split('/')[2]
1416
if payload['build']
1517
data['build'] = payload['build']['id']
1618
elsif message['build_id']

0 commit comments

Comments
 (0)