File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 5
5
### New Features
6
6
7
7
### Changes
8
+
9
+ - Make autoPrefixes and instrumentEnable true by default
8
10
9
11
### Bugs fixed
10
12
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public class Emitter {
42
42
static Keyword LINE_KEY = Keyword .intern (null , "line" );
43
43
static Keyword NS_KEY = Keyword .intern (null , "ns" );
44
44
45
- public static Var INSTRUMENTATION_ENABLE = Var .create (false ).setDynamic ();
45
+ public static Var INSTRUMENTATION_ENABLE = Var .create (true ).setDynamic ();
46
46
47
47
private static ArrayList <String > instrumentationOnlyPrefixes = new ArrayList ();
48
48
private static ArrayList <String > instrumentationSkipPrefixes = new ArrayList ();
@@ -63,8 +63,8 @@ public class Emitter {
63
63
setInstrumentationEnable (Boolean .parseBoolean (instrumentationEnableProp ));
64
64
65
65
String autoPrefixesProp = System .getProperty ("clojure.storm.instrumentAutoPrefixes" );
66
- if ( autoPrefixesProp != null && Boolean .parseBoolean (autoPrefixesProp ))
67
- {
66
+ boolean autoPrefixes = autoPrefixesProp == null || Boolean .parseBoolean (autoPrefixesProp );
67
+ if ( autoPrefixes ) {
68
68
for (String autoPrefix : Utils .classpathSrcDirstRootNamespaces ())
69
69
{
70
70
// This is kind of hacky because ClojureStorm shouldn't have anything related to
@@ -75,7 +75,7 @@ public class Emitter {
75
75
}
76
76
77
77
}
78
- }
78
+ }
79
79
80
80
for (String p : Utils .prefixesForPropStartingWith ("clojure.storm.instrumentOnlyPrefixes" ))
81
81
addInstrumentationOnlyPrefix (p );
You can’t perform that action at this time.
0 commit comments