feat: enhance error logging in StatsService

- Added a warning log for failed user statistics retrieval in StatsService to improve diagnostics and monitoring.
This commit is contained in:
kastov 2025-06-15 18:38:58 +03:00
parent 5b91b90b3a
commit 81b4eaaa7d
No known key found for this signature in database
GPG key ID: 1B27BE29057F4C90

View file

@ -80,6 +80,8 @@ export class StatsService {
const response = await this.xtlsSdk.stats.getAllUsersStats(reset);
if (!response.isOk || !response.data) {
this.logger.warn(response);
return {
isOk: false,
...ERRORS.FAILED_TO_GET_USERS_STATS,