mirror of
https://github.com/remnawave/node.git
synced 2026-10-24 20:02:26 +00:00
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:
parent
5b91b90b3a
commit
81b4eaaa7d
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue