Merge pull request #1688 from jotomo/combo-ruffy-chattyness

Fix #1619 by removing unnecessarily chatty ruffy logging.
This commit is contained in:
Milos Kozak 2022-05-03 14:29:12 +02:00 committed by GitHub
commit 00645f45c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,14 @@ public class RuffyScripter implements RuffyCommands {
private final IRTHandler mHandler = new IRTHandler.Stub() {
@Override
public void log(String message) {
aapsLogger.debug(LTag.PUMP, "Ruffy says: " + message);
// Ruffy is very verbose at this level, but the data provided isn't too helpful for
// debugging. For debugging Ruffy, it makes more sense to check logcat, where other
// possibly relevant (BT) events are also logged.
// Due to the amount of calls, logging this causes timing issues as reported in
// https://github.com/nightscout/AndroidAPS/issues/1619#issuecomment-1115811485
// This was caused by changing the log level from trace to debug so these messages
// where logged by default.
//aapsLogger.debug(LTag.PUMP, "Ruffy says: " + message);
}
@Override