refactor: 💡 Remove stack traces and add logs for version info (#2391)

This commit is contained in:
Zhihe Li authored and GitHub committed 2024-07-16 17:51:16 -04:00
1 parent 9404300a9e
commit ec6ec7511e
12 files changed
+51 -30

No files matched your search

@@ -123,12 +123,15 @@ export default class CacheDaemonHandler {
);
} catch (err) {
// If it fails again just fall back to fetching controller data
__electronLog?.error('Failed to add token to daemons', err);
__electronLog?.error(
'Failed to add token to daemons',
err.message,
);
}
} else {
__electronLog?.error(
'Failed to search cache daemon; falling back to search controller',
e,
e.message,
);
return fetchControllerData(context, next);