Skip to content

Instantly share code, notes, and snippets.

View rkoster's full-sized avatar

Ruben Koster rkoster

View GitHub Profile
@rkoster
rkoster / gist:7546242
Last active December 28, 2015 18:49 — forked from yudai/gist:7540823
module Bosh::OpenStackCloud
class ExconLoggingInstrumentor
REDACTED = "[REDACTED]"
def self.instrument(name, params = {}, &block)
params = params.dup
if params.has_key?(:headers) && params[:headers].has_key?('Authorization')
params[:headers] = params[:headers].dup
params[:headers]['Authorization'] = REDACTED
end
if params.has_key?(:password)