lib/google/cloud/logging/logger.rb in google-cloud-logging-1.6.2 vs lib/google/cloud/logging/logger.rb in google-cloud-logging-1.6.3

- old
+ new

@@ -537,11 +537,11 @@ ## # @private Write a log entry to the Stackdriver Logging service. def write_entry severity, message entry = Entry.new.tap do |e| e.timestamp = Time.now - e.severity = gcloud_severity(severity) + e.severity = gcloud_severity severity e.payload = message end actual_log_name = log_name info = request_info @@ -570,11 +570,11 @@ end end request_env = info && info.env || {} - compute_labels(request_env).merge(merged_labels) + compute_labels(request_env).merge merged_labels end ## # @private Get the logger level number from severity value object. def derive_severity severity @@ -619,11 +619,11 @@ ## # @private Compute individual label value. # Value can be a Proc (function of the request env) or a static value. def compute_label_value request_env, value_or_proc - if value_or_proc.respond_to?(:call) - value_or_proc.call(request_env) + if value_or_proc.respond_to? :call + value_or_proc.call request_env else value_or_proc end end end