Implement action arguments logging
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
module Producer
|
||||
module Core
|
||||
class Action
|
||||
INSPECT_ARGUMENTS_SUM_LEN = 68.freeze
|
||||
|
||||
extend Forwardable
|
||||
def_delegators :@env, :input, :output, :error_output, :remote
|
||||
def_delegators :remote, :fs
|
||||
@@ -17,7 +19,14 @@ module Producer
|
||||
end
|
||||
|
||||
def to_s
|
||||
name
|
||||
[name, inspect_arguments].join ' '
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
|
||||
def inspect_arguments
|
||||
@arguments.inspect[0, INSPECT_ARGUMENTS_SUM_LEN - name.length]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user