Skip to content

Commit df87afd

Browse files
TRUNK-6243: Add a new runtime property to determine if app is running in development or production mode
1 parent d90602f commit df87afd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

api/src/main/java/org/openmrs/util/OpenmrsConstants.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ public static final Collection<String> AUTO_ROLES() {
564564
*/
565565
public static final String DEVELOPMENT_MODE_RUNTIME_PROPERTY = "development.mode";
566566

567-
public static final String DEVELOPMENT_MODE_DEFAULT = "true";
567+
public static final String DEVELOPMENT_MODE_DEFAULT = "false";
568568

569569
/**
570570
* Global property name for the visit type(s) to automatically close

api/src/main/java/org/openmrs/util/OpenmrsUtil.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -1954,7 +1954,7 @@ public static String shortenedStackTrace(String stackTrace) {
19541954
* @return formatted stack trace message
19551955
* <strong>Should</strong> return null if stackTrace is null
19561956
* <strong>Should</strong> return the Error and the Cause
1957-
* @since 2.8
1957+
* @since 2.8.0
19581958
*/
19591959
public static String formattedStackTrace(String stackTrace) {
19601960
if (stackTrace == null) {
@@ -1984,12 +1984,10 @@ public static String formattedStackTrace(String stackTrace) {
19841984
result.append("\n").append(line);
19851985
foundCause = true;
19861986
}
1987-
19881987
if (foundCause) {
19891988
break;
19901989
}
19911990
}
1992-
19931991
return result.toString();
19941992
} else {
19951993
return stackTrace;

0 commit comments

Comments
 (0)