Commit d4359611 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Print stacktrace only when in debug

parent 8b106500
......@@ -77,7 +77,9 @@ public class Migration implements RealmMigration {
try {
userSchema.addField(RealmUser.NAME, String.class);
} catch (IllegalArgumentException e) {
e.printStackTrace();
if (BuildConfig.DEBUG) {
e.printStackTrace();
}
// ignore; it makes here if the schema for this model was already update before without migration
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment