From 99e0c548e68b5cc971a877dc3b2b7f58197d2ee5 Mon Sep 17 00:00:00 2001 From: Yadd Date: Tue, 23 Jan 2024 12:53:13 +0400 Subject: [PATCH] Reduce logs (#342) --- .../backend/utils/nextcloud-migration/src/shell_ldap_user.ts | 1 - tdrive/backend/utils/nextcloud-migration/src/twake_client.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tdrive/backend/utils/nextcloud-migration/src/shell_ldap_user.ts b/tdrive/backend/utils/nextcloud-migration/src/shell_ldap_user.ts index 9f466e84..6b762725 100644 --- a/tdrive/backend/utils/nextcloud-migration/src/shell_ldap_user.ts +++ b/tdrive/backend/utils/nextcloud-migration/src/shell_ldap_user.ts @@ -30,7 +30,6 @@ export class ShellLdapUserProvider implements UserProvider { stdout = stdout.substring(0, stdout.lastIndexOf("# search result")) } let obj = ldif.parse(stdout).shift().toObject({}); - logger.info(obj); resolve({ lastName: obj.attributes.sn, firstName: obj.attributes.givenName, diff --git a/tdrive/backend/utils/nextcloud-migration/src/twake_client.ts b/tdrive/backend/utils/nextcloud-migration/src/twake_client.ts index fedc1627..1ad72b64 100644 --- a/tdrive/backend/utils/nextcloud-migration/src/twake_client.ts +++ b/tdrive/backend/utils/nextcloud-migration/src/twake_client.ts @@ -78,7 +78,7 @@ export class TwakeDriveClient { item, version, }); - logger.info(response); + logger.info(response.data); return response.data; }; @@ -87,7 +87,7 @@ export class TwakeDriveClient { const response = await (await this.client()).get(`${this.config.url}/internal/services/documents/v1/companies/00000000-0000-4000-0000-000000000000/item/${id}`, { }); - logger.info(response); + logger.info(response.data); return response.data; }