Skip to content

Commit 904031e

Browse files
committed
small
1 parent 4de4002 commit 904031e

2 files changed

Lines changed: 22409 additions & 2 deletions

File tree

‎v4-cokapi/backends/ruby/pg_logger.rb‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
# with way too many attributes. this is a general problem that
2323
# manifests in other languages as well.
2424

25+
# 2016-05-01: super hacky -- prefaced all global variables with a munged
26+
# name prefix like '__opt_ruby_global__' to prevent name clashes with
27+
# the user's script. right now the script is apparently eval'ed in the
28+
# same scope as the tracer, so it can shadow the tracer's variables,
29+
# leading to bad results. the real fix is to get the bindings right, but
30+
# for now, this kludgy hack will have to do.
31+
2532

2633
require 'json'
2734
require 'optparse'

0 commit comments

Comments
 (0)