From d569748da535884231a1eccb91dd457519228d59 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rault Date: Tue, 13 Dec 2016 14:50:37 +0100 Subject: [PATCH] added Android debug information on the info page --- sources/syncserver/__init__.py | 3 +-- sources/syncserver/page/index.html | 34 ++++++++++++++++++++++++------ 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/sources/syncserver/__init__.py b/sources/syncserver/__init__.py index 7cf5772..de45409 100644 --- a/sources/syncserver/__init__.py +++ b/sources/syncserver/__init__.py @@ -6,7 +6,6 @@ import os import logging from urlparse import urlparse, urlunparse -from pyramid.response import Response from pyramid.events import NewRequest, subscriber from pyramid.static import static_view @@ -96,7 +95,7 @@ def includeme(config): ) # Documentation for Hybrid routing can be found here # http://docs.pylonsproject.org/projects/pyramid/en/1.0-branch/narr/hybrid.html#using-subpath-in-a-route-pattern - config.add_route('index', '/*subpath', 'www') # subpath is a reserved word + config.add_route('index', '/*subpath', 'www') # subpath is a reserved word config.add_view(www, route_name='index') diff --git a/sources/syncserver/page/index.html b/sources/syncserver/page/index.html index 86a02c8..ad14833 100644 --- a/sources/syncserver/page/index.html +++ b/sources/syncserver/page/index.html @@ -35,14 +35,14 @@ help support Mozilla. - Mozilla Firefox Web Browser — Gardez votre Firefox synchronisé — Mozilla + Firefox Sync Server — Keep Synced on your own - + @@ -618,9 +618,31 @@ help support Mozilla. identity.sync.tokenserver.uri: http://{this page’s url}/token/1.0/sync/1.5

- Since Firefox 33, Firefox for Android has supported custom sync servers. To configure - Firefox for Android, see the blog post How to connect Firefox for Android to self-hosted - Firefox Account and Firefox Sync servers. + Since Firefox 33, Firefox for Android has supported custom sync servers, + should be a breeze. +

+

Solving problems with Android

+

The sure-fire way to know what Sync on Android is really doing is to + observe the Android device log using adb logcat. You’ll want to bump + your log-level: +


+ adb shell setprop log.tag.FxAccounts VERBOSE +
+

+ Then, you can observe the log using: +

+
+ adb logcat | grep FxAccounts +
+

+ It’s best to observe the log while you force a sync from the Android Settings App. You should see output like: +

+
+D FxAccounts(...) fennec :: BaseResource :: HTTP GET https://token.stage.mozaws.net/1.0/sync/1.5
+...
+D FxAccounts(...) fennec :: BaseResource :: HTTP GET https://sync-4-us-east-1.stage.mozaws.net/

+See how to file a good Android Sync bug for details. +

@@ -637,7 +659,7 @@ help support Mozilla.