From 9f7b7885e3855c767965b76cca2d55c1e6c45935 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Thu, 9 Sep 2021 06:59:58 -0700 Subject: [PATCH] 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 --- desktop/app/src/init.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/app/src/init.tsx b/desktop/app/src/init.tsx index f0cb9dd08..294624601 100644 --- a/desktop/app/src/init.tsx +++ b/desktop/app/src/init.tsx @@ -197,7 +197,7 @@ function init() { logger.track('usage', 'interaction', r); if (!isProduction()) { 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); } });