EVENTS logging cleanup
This commit is contained in:
parent
1e68165c82
commit
3d57d52271
|
@ -10,6 +10,7 @@ import java.util.HashSet;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import info.nightscout.androidaps.Constants;
|
||||||
import info.nightscout.androidaps.events.Event;
|
import info.nightscout.androidaps.events.Event;
|
||||||
|
|
||||||
/** Logs events has they're being posted to and dispatched from the event bus.
|
/** Logs events has they're being posted to and dispatched from the event bus.
|
||||||
|
@ -18,7 +19,7 @@ import info.nightscout.androidaps.events.Event;
|
||||||
* after 10s (after startup) and then again every 60s.
|
* after 10s (after startup) and then again every 60s.
|
||||||
* */
|
* */
|
||||||
public class LoggingBus extends Bus {
|
public class LoggingBus extends Bus {
|
||||||
private static Logger log = LoggerFactory.getLogger(LoggingBus.class);
|
private static Logger log = LoggerFactory.getLogger(Constants.EVENTS);
|
||||||
|
|
||||||
private static long everyMinute = System.currentTimeMillis() + 10 * 1000;
|
private static long everyMinute = System.currentTimeMillis() + 10 * 1000;
|
||||||
private Map<String, Set<String>> event2Receiver = new HashMap<>();
|
private Map<String, Set<String>> event2Receiver = new HashMap<>();
|
||||||
|
|
|
@ -70,4 +70,5 @@ public class Constants {
|
||||||
|
|
||||||
// logging
|
// logging
|
||||||
public static final String AUTOSENS = "AUTOSENS";
|
public static final String AUTOSENS = "AUTOSENS";
|
||||||
|
public static final String EVENTS = "EVENTS";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue