Icu 13451 desktop client logging (#2318)

* feat: 🎸 Add initial logging for desktop client
This commit is contained in:
Zhihe Li authored and GitHub committed 2024-06-07 12:12:28 -04:00
1 parent 5a7e09c70c
commit 7e89f28949
9 files changed
+53 -5

No files matched your search

@@ -3,6 +3,7 @@
* SPDX-License-Identifier: BUSL-1.1
*/
/* global __electronLog */
import { inject as service } from '@ember/service';
import { getOwner, setOwner } from '@ember/application';
import { generateMQLExpression } from '../utils/mql-query';
@@ -120,12 +121,18 @@ export default class ClientDaemonHandler {
'searchClientDaemon',
remainingQuery,
);
} catch {
} catch (err) {
// If it fails again just fall back to fetching controller data
__electronLog?.error('Failed to add token to daemons', err);
}
}
} else {
__electronLog?.error(
'Failed to search cache daemon; falling back to search controller',
e,
);
return fetchControllerData(context, next);
return fetchControllerData(context, next);
}
}
// Currently returns with a singular top level field with resource name