Skip to content

Commit 325e016

Browse files
authored
Set Traceur to only work in DEBUG mode (#1884)
1 parent 6eb01b8 commit 325e016

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/src/main/java/fr/free/nrw/commons/CommonsApplication.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ public class CommonsApplication extends MultiDexApplication {
7272
@Override
7373
public void onCreate() {
7474
super.onCreate();
75-
Traceur.enableLogging();
75+
if (BuildConfig.DEBUG) {
76+
//FIXME: Traceur should be disabled for release builds until error fixed
77+
//See https://github.com/commons-app/apps-android-commons/issues/1877
78+
Traceur.enableLogging();
79+
}
7680

7781
ApplicationlessInjection
7882
.getInstance(this)

0 commit comments

Comments
 (0)