From 122c9017142eb9e93aeea71b96b4ec92d6b7cac2 Mon Sep 17 00:00:00 2001 From: Niklas Steiner Date: Sat, 23 Apr 2022 20:40:18 +0200 Subject: [PATCH] fix: logging issues --- src/utilities/ivao.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utilities/ivao.service.ts b/src/utilities/ivao.service.ts index b10384f..ca6da5c 100644 --- a/src/utilities/ivao.service.ts +++ b/src/utilities/ivao.service.ts @@ -102,14 +102,14 @@ export class IvaoService { const whazzupData: Whazzup = await this.http.get('https://api.ivao.aero/v2/tracker/whazzup') .pipe( - tap((response) => this.logger.debug(`Response status ${response.status} for IVAO request`)), - tap((response) => this.logger.debug(`Response contains ${response.data.length} entries`)), + tap((response) => this.logger.debug(`Response status ${response.status} for IVAO whazzup request`)), + tap((response) => this.logger.debug(`Response contains ${response.data.servers.length} server entries`)), map((response) => response.data), ).toPromise(); const whazzupAtisData: WhazzupAtis = await this.http.get('https://api.ivao.aero/v2/tracker/whazzup/atis') .pipe( - tap((response) => this.logger.debug(`Response status ${response.status} for IVAO request`)), + tap((response) => this.logger.debug(`Response status ${response.status} for IVAO whazzup-ATIS request`)), tap((response) => this.logger.debug(`Response contains ${response.data.length} entries`)), map((response) => response.data), ).toPromise();