Skip to content

Commit 278c28f

Browse files
committed
chore: update documentation links and enhance logging in internal services
1 parent a6df3f7 commit 278c28f

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Node for Remnawave Panel.
44

5-
Learn more about Remnawave Panel [here](https://remna.st/).
5+
Learn more about Remnawave Panel [here](https://docs.rw/).
66

77
# Contributors
88

libs/contract/constants/errors/known-errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export const KNOWN_ERRORS = {
55
code: 'RN-001',
66
message: 'Xray core failed to start',
77
documentationUrl:
8-
'https://remna.st/docs/guides/common-errors#xml-rpc-fault-spawn-error-xray',
8+
'https://docs.rw/docs/guides/common-errors#xml-rpc-fault-spawn-error-xray',
99
},
1010
};

src/common/utils/get-start-message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function getStartMessage(
1818

1919
return table(
2020
[
21-
['Docs → https://remna.st\nCommunity → https://t.me/remnawave'],
21+
['Docs → https://docs.rw\nCommunity → https://t.me/remnawave'],
2222
[`API Port: ${appPort}\nInternal Ports: 61000, ${internalPort}, 61002`],
2323
[`XRay Core: v${xrayInfo.version || 'N/A'}\nXRay Path: ${xrayInfo.path}`],
2424
[

src/modules/internal/internal.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ export class InternalService {
201201
}
202202

203203
public cleanup(): void {
204+
this.logger.log('Cleaning up internal service.');
205+
204206
this.inboundsHashMap.clear();
205207
this.xtlsConfigInbounds.clear();
206208
this.xrayConfig = null;

src/modules/stats/stats.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class StatsService {
5353
const response = await this.xtlsSdk.stats.getSysStats();
5454

5555
if (!response.isOk || !response.data) {
56-
this.logger.error(response);
56+
this.logger.warn(response);
5757
return {
5858
isOk: false,
5959
...ERRORS.FAILED_TO_GET_SYSTEM_STATS,

src/modules/xray-core/xray.module.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Module, OnModuleDestroy } from '@nestjs/common';
1+
import { Logger, Module, OnModuleDestroy } from '@nestjs/common';
22

33
import { InternalModule } from '../internal/internal.module';
44
import { XrayController } from './xray.controller';
@@ -11,9 +11,13 @@ import { XrayService } from './xray.service';
1111
exports: [XrayService],
1212
})
1313
export class XrayModule implements OnModuleDestroy {
14+
private readonly logger = new Logger(XrayModule.name);
15+
1416
constructor(private readonly xrayService: XrayService) {}
1517

1618
async onModuleDestroy() {
19+
this.logger.log('Destroying module.');
20+
1721
await this.xrayService.killAllXrayProcesses();
1822
}
1923
}

0 commit comments

Comments
 (0)