Better log messages for events.
This commit is contained in:
parent
9d10563bd9
commit
d830096482
|
@ -1,9 +1,14 @@
|
||||||
package info.nightscout.androidaps.events;
|
package info.nightscout.androidaps.events;
|
||||||
|
|
||||||
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
|
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
/** Base class for all events posted on the event bus. */
|
/** Base class for all events posted on the event bus. */
|
||||||
public abstract class Event {
|
public abstract class Event {
|
||||||
|
static {
|
||||||
|
ReflectionToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return ReflectionToStringBuilder.toString(this);
|
return ReflectionToStringBuilder.toString(this);
|
||||||
|
|
Loading…
Reference in a new issue