Move interaction logs from info to debug

Summary: per title, the logs (e.g. `[interaction] "clear" clicked in 3ms.`) are not super interesting, unless you're trying to build some scuba graphs

Reviewed By: timur-valiev

Differential Revision: D30839590

fbshipit-source-id: d22deec130f947d2d440d499b8e2e146c1b44b68
This commit is contained in:
Michel Weststrate
2021-09-09 06:59:58 -07:00
committed by Facebook GitHub Bot
parent 93201b4e5d
commit 9f7b7885e3

View File

@@ -197,7 +197,7 @@ function init() {
logger.track('usage', 'interaction', r); logger.track('usage', 'interaction', r);
if (!isProduction()) { if (!isProduction()) {
const msg = `[interaction] ${r.scope}:${r.action} in ${r.duration}ms`; const msg = `[interaction] ${r.scope}:${r.action} in ${r.duration}ms`;
if (r.success) console.log(msg); if (r.success) console.debug(msg);
else console.warn(msg, r.error); else console.warn(msg, r.error);
} }
}); });