remove ALARM logging

This commit is contained in:
Milos Kozak 2018-07-31 18:00:31 +02:00
parent 976a624b66
commit ce16dd747b
2 changed files with 4 additions and 6 deletions

View file

@ -81,7 +81,6 @@ public class L {
public static final String BGSOURCE = "BGSOURCE";
public static final String OVERVIEW = "OVERVIEW";
public static final String NOTIFICATION = "NOTIFICATION";
public static final String ALARM = "ALARM";
public static final String DATASERVICE = "DATASERVICE";
public static final String DATABASE = "DATABASE";
public static final String DATAFOOD = "DATAFOOD";
@ -98,7 +97,6 @@ public class L {
private static void initialize() {
logElements = new ArrayList<>();
logElements.add(new LogElement(ALARM, false));
logElements.add(new LogElement(APS, true));
logElements.add(new LogElement(AUTOSENS, false));
logElements.add(new LogElement(BGSOURCE, true));

View file

@ -18,7 +18,7 @@ import info.nightscout.androidaps.R;
import info.nightscout.androidaps.logging.L;
public class AlarmSoundService extends Service {
private static Logger log = LoggerFactory.getLogger(L.ALARM);
private static Logger log = LoggerFactory.getLogger(L.CORE);
MediaPlayer player;
int resourceId = R.raw.error;
@ -35,14 +35,14 @@ public class AlarmSoundService extends Service {
@Override
public void onCreate() {
super.onCreate();
if (L.isEnabled(L.ALARM))
if (L.isEnabled(L.CORE))
log.debug("onCreate");
}
public int onStartCommand(Intent intent, int flags, int startId) {
if (player != null && player.isPlaying())
player.stop();
if (L.isEnabled(L.ALARM))
if (L.isEnabled(L.CORE))
log.debug("onStartCommand");
if (intent != null && intent.hasExtra("soundid"))
resourceId = intent.getIntExtra("soundid", R.raw.error);
@ -77,7 +77,7 @@ public class AlarmSoundService extends Service {
public void onDestroy() {
player.stop();
player.release();
if (L.isEnabled(L.ALARM))
if (L.isEnabled(L.CORE))
log.debug("onDestroy");
}
}