From d2ef9da0bf5619f744196bfa3fc90968e54b1f48 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 7 Mar 2022 10:16:11 -0800 Subject: [PATCH] google-device-access: request logging --- plugins/google-device-access/package-lock.json | 4 ++-- plugins/google-device-access/package.json | 2 +- plugins/google-device-access/src/main.ts | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/google-device-access/package-lock.json b/plugins/google-device-access/package-lock.json index 24b3a8566..33bfdbd75 100644 --- a/plugins/google-device-access/package-lock.json +++ b/plugins/google-device-access/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/google-device-access", - "version": "0.0.92", + "version": "0.0.93", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/google-device-access", - "version": "0.0.92", + "version": "0.0.93", "dependencies": { "@googleapis/smartdevicemanagement": "^0.2.0", "axios": "^0.21.1", diff --git a/plugins/google-device-access/package.json b/plugins/google-device-access/package.json index 5bcc887b8..74dfdb70f 100644 --- a/plugins/google-device-access/package.json +++ b/plugins/google-device-access/package.json @@ -49,5 +49,5 @@ "@types/node": "^14.17.11", "@types/url-parse": "^1.4.3" }, - "version": "0.0.92" + "version": "0.0.93" } diff --git a/plugins/google-device-access/src/main.ts b/plugins/google-device-access/src/main.ts index 20539c0a0..68e03ded2 100644 --- a/plugins/google-device-access/src/main.ts +++ b/plugins/google-device-access/src/main.ts @@ -692,6 +692,7 @@ class GoogleSmartDeviceAccess extends ScryptedDeviceBase implements OauthClient, } async authGet(path: string) { + this.console.log('SDM request', path); await this.loadToken(); return axios(`https://${this.apiHostname}/v1/enterprises/${this.projectId}${path}`, { headers: { @@ -701,6 +702,7 @@ class GoogleSmartDeviceAccess extends ScryptedDeviceBase implements OauthClient, } async authPost(path: string, data: any) { + this.console.log('SDM request', path); await this.loadToken(); return axios.post(`https://${this.apiHostname}/v1/enterprises/${this.projectId}${path}`, data, { headers: {