diff --git a/src/api/http/index.ts b/src/api/http/index.ts index cffdea7..e486d2d 100644 --- a/src/api/http/index.ts +++ b/src/api/http/index.ts @@ -41,7 +41,9 @@ export class HttpApi { public async listen() { const httpServer = http.createServer(this.app); httpServer.listen(this.props.port); - logger.info(`http api listening at ${this.props.port}`); + logger.info( + `http api listening for ${this.vk.endpoint} at localhost:${this.props.port}` + ); } /** diff --git a/src/index.ts b/src/index.ts index f00c594..23e4f4c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,6 +25,8 @@ async function main() { await httpApi.listen(); await telegramApi.probe(); + + logger.info("bot successfully started"); } catch (e) { logger.error(e.message); } diff --git a/src/service/vk/index.ts b/src/service/vk/index.ts index 60839bd..2f91bb2 100644 --- a/src/service/vk/index.ts +++ b/src/service/vk/index.ts @@ -98,7 +98,7 @@ export class VkService { handlers.forEach((channel) => { keys(channel).forEach((event) => { - console.log(`updates in ${String(event)}`); + console.log(` - ${group.name} listens for ${String(event)}`); updates.on(event as any, channel[event].execute); }); });