Remove temporary push/call/photos debug telemetry
Push, native calling, and Photos save are all confirmed working, so strip the diagnostic instrumentation: the pdbg() helper and all its call sites in home.html (native-setup-*, registration-*, perm-*, nc-* call events, photos-fail) and the matching /api/push-debug route in routes.js. Real console.log/console.warn lines and all functional logic are kept; a couple of pdbg-only error paths now log via console.warn instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -412,18 +412,6 @@ route('POST', '/api/devices/remove', async (req, res) => {
|
||||
json(res, 200, { ok: true });
|
||||
});
|
||||
|
||||
// --- Push diagnostics (temporary): the native app reports each step of push setup here so we can see
|
||||
// WHERE iOS registration fails without a Mac/device console. Best-effort; logs and returns 200. ---
|
||||
route('POST', '/api/push-debug', async (req, res) => {
|
||||
try {
|
||||
const b = await readBody(req);
|
||||
let uid = 'anon'; try { const u = await currentUser(req); if (u) uid = u.id; } catch (_) {}
|
||||
const line = (typeof b === 'object' ? JSON.stringify(b) : String(b)).slice(0, 800);
|
||||
console.log('[push-debug] user=' + uid + ' ' + line);
|
||||
} catch (_) {}
|
||||
json(res, 200, { ok: true });
|
||||
});
|
||||
|
||||
// --- App install telemetry: records each install and, once the user signs in, who's using it. ---
|
||||
route('POST', '/api/telemetry/install', async (req, res) => {
|
||||
const { installId, platform, appVersion, os } = await readBody(req);
|
||||
|
||||
Reference in New Issue
Block a user