Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbae committed Apr 8, 2019
1 parent df46585 commit db78f8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/microsoft/sqlserver/jdbc/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class Util {
final static char[] hexChars = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
final static String WSIDNotAvailable = ""; // default string when WSID is not available

final static String ActivityIdTraceProperty = "com.microsoft.sqlserver.jdbc.traceactivity";
final static String ACTIVITY_ID_TRACE_PROPERTY = "com.microsoft.sqlserver.jdbc.traceactivity";

// The JRE is identified by the string below so that the driver can make
// any vendor or version specific decisions
Expand Down Expand Up @@ -769,7 +769,7 @@ static final String readGUID(byte[] inputGUID) throws SQLServerException {

static boolean isActivityTraceOn() {
LogManager lm = LogManager.getLogManager();
String activityTrace = lm.getProperty(ActivityIdTraceProperty);
String activityTrace = lm.getProperty(ACTIVITY_ID_TRACE_PROPERTY);
return ("on".equalsIgnoreCase(activityTrace));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public void testActivityIDPooledConnection() throws Exception {

@AfterAll
public static void teardown() throws Exception {
String activityIDTraceOff = Util.ActivityIdTraceProperty + "=off";
String activityIDTraceOff = Util.ACTIVITY_ID_TRACE_PROPERTY + "=off";
try (InputStream is = new ByteArrayInputStream(activityIDTraceOff.getBytes());) {
LogManager lm = LogManager.getLogManager();
lm.readConfiguration(is);
Expand All @@ -158,7 +158,7 @@ public static void teardown() throws Exception {

@BeforeAll
public static void testSetup() throws Exception {
String activityIDTraceOn = Util.ActivityIdTraceProperty + "=on";
String activityIDTraceOn = Util.ACTIVITY_ID_TRACE_PROPERTY + "=on";
try (InputStream is = new ByteArrayInputStream(activityIDTraceOn.getBytes());) {
LogManager lm = LogManager.getLogManager();
lm.readConfiguration(is);
Expand Down

0 comments on commit db78f8c

Please sign in to comment.