Added ui action breadcrumbs

pull/184/head
M66B 4 years ago
parent 95ed93dbb5
commit 3435b150d9

@ -41,7 +41,9 @@ import java.io.IOException;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.util.Collections; import java.util.Collections;
import java.util.Date; import java.util.Date;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import javax.mail.Address; import javax.mail.Address;
@ -176,11 +178,15 @@ public class ServiceUI extends IntentService {
default: default:
throw new IllegalArgumentException("Unknown UI action: " + parts[0]); throw new IllegalArgumentException("Unknown UI action: " + parts[0]);
} }
Map<String, String> crumb = new HashMap<>();
crumb.put("action", action);
Log.breadcrumb("serviceui", crumb);
ServiceSynchronize.eval(this, "ui/" + action);
} catch (Throwable ex) { } catch (Throwable ex) {
Log.e(ex); Log.e(ex);
} }
ServiceSynchronize.eval(this, "ui/" + action);
} }
private void onClear(long group) { private void onClear(long group) {

Loading…
Cancel
Save