From 9d9c4de417bc28b2e04e547a828c2b4eb281db9b Mon Sep 17 00:00:00 2001 From: Shrihari Prakash Date: Sun, 31 Dec 2023 22:08:25 +0530 Subject: [PATCH] Adjusted logger names. --- src/service/api/client/admin-api/create.post.ts | 2 +- src/service/api/client/admin-api/delete.delete.ts | 2 +- src/service/api/client/admin-api/list.get.ts | 2 +- src/service/api/client/admin-api/update.patch.ts | 2 +- src/service/api/client/client.get.ts | 2 +- src/service/api/system/countries-insecure.get.ts | 2 +- src/service/api/system/settings-insecure.get.ts | 2 +- src/service/api/system/settings.get.ts | 2 +- src/service/api/system/shared/stats.get.ts | 2 +- src/service/api/user/2fa.post.ts | 2 +- src/service/api/user/_userId.get.ts | 2 +- src/service/api/user/admin-api/editable-fields.get.ts | 2 +- src/service/api/user/admin-api/update.patch.ts | 2 +- src/service/api/user/admin-api/verify.post.ts | 2 +- src/service/api/user/block.post.ts | 2 +- src/service/api/user/client-api/block-status.get.ts | 2 +- src/service/api/user/client-api/follow-status.get.ts | 2 +- src/service/api/user/client-api/user-followers.get.ts | 2 +- src/service/api/user/client-api/user-following.get.ts | 2 +- src/service/api/user/code.get.ts | 2 +- src/service/api/user/create.post.ts | 2 +- src/service/api/user/do-2fa.post.ts | 2 +- src/service/api/user/follow-entry.delete.ts | 2 +- src/service/api/user/follow-request.patch.ts | 2 +- src/service/api/user/follow-requests.get.ts | 2 +- src/service/api/user/follow-status.get.ts | 2 +- src/service/api/user/follow.post.ts | 2 +- src/service/api/user/followers.get.ts | 2 +- src/service/api/user/following.get.ts | 2 +- src/service/api/user/invite-codes.get.ts | 2 +- src/service/api/user/login-history.get.ts | 2 +- src/service/api/user/login.post.ts | 2 +- src/service/api/user/logout.get.ts | 2 +- src/service/api/user/me.get.ts | 2 +- src/service/api/user/me.patch.ts | 2 +- src/service/api/user/private.post.ts | 2 +- src/service/api/user/profile-picture.delete.ts | 2 +- src/service/api/user/profile-picture.patch.ts | 2 +- src/service/api/user/reset-password.post.ts | 2 +- src/service/api/user/scopes.get.ts | 2 +- src/service/api/user/search.post.ts | 2 +- src/service/api/user/session-state.get.ts | 2 +- src/service/api/user/shared/access.post.ts | 2 +- src/service/api/user/shared/ban.post.ts | 2 +- src/service/api/user/shared/create.post.ts | 2 +- src/service/api/user/shared/credits.post.ts | 2 +- src/service/api/user/shared/invite-codes.get.ts | 2 +- src/service/api/user/shared/invite-codes.post.ts | 2 +- src/service/api/user/shared/list.get.ts | 2 +- src/service/api/user/shared/restrict.post.ts | 2 +- src/service/api/user/shared/roles.get.ts | 2 +- src/service/api/user/shared/subscription-tiers.get.ts | 2 +- src/service/api/user/shared/subscription.post.ts | 2 +- src/service/api/user/shared/user-info.get.ts | 2 +- src/service/api/user/unblock.post.ts | 2 +- src/service/api/user/unfollow.post.ts | 2 +- src/service/api/user/verify-email.get.ts | 2 +- 57 files changed, 57 insertions(+), 57 deletions(-) diff --git a/src/service/api/client/admin-api/create.post.ts b/src/service/api/client/admin-api/create.post.ts index e60f3a01..02930c6b 100644 --- a/src/service/api/client/admin-api/create.post.ts +++ b/src/service/api/client/admin-api/create.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "client/admin-api/create" }); +const log = Logger.getLogger().child({ from: "client/admin-api/create.post" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/client/admin-api/delete.delete.ts b/src/service/api/client/admin-api/delete.delete.ts index 89c3a064..97082382 100644 --- a/src/service/api/client/admin-api/delete.delete.ts +++ b/src/service/api/client/admin-api/delete.delete.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "admin-api/editable-fields" }); +const log = Logger.getLogger().child({ from: "client/admin-api/delete.delete" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/client/admin-api/list.get.ts b/src/service/api/client/admin-api/list.get.ts index 257202ad..9a3b32e0 100644 --- a/src/service/api/client/admin-api/list.get.ts +++ b/src/service/api/client/admin-api/list.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/common-api/get-user-info" }); +const log = Logger.getLogger().child({ from: "client/admin-api/list.get" }); import { Request, Response } from "express"; diff --git a/src/service/api/client/admin-api/update.patch.ts b/src/service/api/client/admin-api/update.patch.ts index 9f122f4a..9dd83c9f 100644 --- a/src/service/api/client/admin-api/update.patch.ts +++ b/src/service/api/client/admin-api/update.patch.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "client/admin-api/update" }); +const log = Logger.getLogger().child({ from: "client/admin-api/update.patch" }); import { Request, Response } from "express"; import { isValidObjectId } from "mongoose"; diff --git a/src/service/api/client/client.get.ts b/src/service/api/client/client.get.ts index b326abd8..5e71cd35 100644 --- a/src/service/api/client/client.get.ts +++ b/src/service/api/client/client.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/client" }); +const log = Logger.getLogger().child({ from: "client/client.get" }); import { Request, Response } from "express"; import { query } from "express-validator"; diff --git a/src/service/api/system/countries-insecure.get.ts b/src/service/api/system/countries-insecure.get.ts index 4d37af11..178b539f 100644 --- a/src/service/api/system/countries-insecure.get.ts +++ b/src/service/api/system/countries-insecure.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "system/country-codes" }); +const log = Logger.getLogger().child({ from: "system/contries-insecure.get" }); import { Request, Response } from "express"; import { errorMessages, statusCodes } from "../../../utils/http-status"; diff --git a/src/service/api/system/settings-insecure.get.ts b/src/service/api/system/settings-insecure.get.ts index e99fbe15..f391cdb8 100644 --- a/src/service/api/system/settings-insecure.get.ts +++ b/src/service/api/system/settings-insecure.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "system/settings" }); +const log = Logger.getLogger().child({ from: "system/settings-insecure.get" }); import { Request, Response } from "express"; import { errorMessages, statusCodes } from "../../../utils/http-status"; diff --git a/src/service/api/system/settings.get.ts b/src/service/api/system/settings.get.ts index 986187f4..2d690fd6 100644 --- a/src/service/api/system/settings.get.ts +++ b/src/service/api/system/settings.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "system/settings" }); +const log = Logger.getLogger().child({ from: "system/settings.get" }); import { Request, Response } from "express"; import { ScopeManager } from "../../../singleton/scope-manager"; diff --git a/src/service/api/system/shared/stats.get.ts b/src/service/api/system/shared/stats.get.ts index 4e80dd05..23a168aa 100644 --- a/src/service/api/system/shared/stats.get.ts +++ b/src/service/api/system/shared/stats.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "system/stats.get" }); +const log = Logger.getLogger().child({ from: "system/shared/stats.get" }); import { Request, Response } from "express"; import * as os from "os"; diff --git a/src/service/api/user/2fa.post.ts b/src/service/api/user/2fa.post.ts index 8ef1e020..c2f9d28d 100644 --- a/src/service/api/user/2fa.post.ts +++ b/src/service/api/user/2fa.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/2fa" }); +const log = Logger.getLogger().child({ from: "user/2fa.post" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/user/_userId.get.ts b/src/service/api/user/_userId.get.ts index be3b80b1..e45e68b0 100644 --- a/src/service/api/user/_userId.get.ts +++ b/src/service/api/user/_userId.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/:userId" }); +const log = Logger.getLogger().child({ from: "user/:userId.get" }); import { Request, Response } from "express"; import { isValidObjectId } from "mongoose"; diff --git a/src/service/api/user/admin-api/editable-fields.get.ts b/src/service/api/user/admin-api/editable-fields.get.ts index 343e0e90..dd91bcbf 100644 --- a/src/service/api/user/admin-api/editable-fields.get.ts +++ b/src/service/api/user/admin-api/editable-fields.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "admin-api/editable-fields" }); +const log = Logger.getLogger().child({ from: "user/admin-api/editable-fields.get" }); import { Request, Response } from "express"; diff --git a/src/service/api/user/admin-api/update.patch.ts b/src/service/api/user/admin-api/update.patch.ts index 0b16552c..5cc71100 100644 --- a/src/service/api/user/admin-api/update.patch.ts +++ b/src/service/api/user/admin-api/update.patch.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/patch" }); +const log = Logger.getLogger().child({ from: "user/admin-api/update.patch" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/user/admin-api/verify.post.ts b/src/service/api/user/admin-api/verify.post.ts index 85833649..02daed34 100644 --- a/src/service/api/user/admin-api/verify.post.ts +++ b/src/service/api/user/admin-api/verify.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/admin-api/verify" }); +const log = Logger.getLogger().child({ from: "user/admin-api/verify.post" }); import { Request, Response } from "express"; import { isValidObjectId } from "mongoose"; diff --git a/src/service/api/user/block.post.ts b/src/service/api/user/block.post.ts index ee752308..c06c7a36 100644 --- a/src/service/api/user/block.post.ts +++ b/src/service/api/user/block.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/block" }); +const log = Logger.getLogger().child({ from: "user/block.post" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/user/client-api/block-status.get.ts b/src/service/api/user/client-api/block-status.get.ts index 9b2bcee1..f7e8abf3 100644 --- a/src/service/api/user/client-api/block-status.get.ts +++ b/src/service/api/user/client-api/block-status.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "client-api/block-status" }); +const log = Logger.getLogger().child({ from: "user/client-api/block-status.get" }); import { Request, Response } from "express"; import { query } from "express-validator"; diff --git a/src/service/api/user/client-api/follow-status.get.ts b/src/service/api/user/client-api/follow-status.get.ts index babc830e..216f7dcf 100644 --- a/src/service/api/user/client-api/follow-status.get.ts +++ b/src/service/api/user/client-api/follow-status.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "client-api/follow-status" }); +const log = Logger.getLogger().child({ from: "user/client-api/follow-status.get" }); import { Request, Response } from "express"; import { query } from "express-validator"; diff --git a/src/service/api/user/client-api/user-followers.get.ts b/src/service/api/user/client-api/user-followers.get.ts index 12b40ad1..1405e25f 100644 --- a/src/service/api/user/client-api/user-followers.get.ts +++ b/src/service/api/user/client-api/user-followers.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "client-api/user-followers" }); +const log = Logger.getLogger().child({ from: "user/client-api/user-followers.get" }); import { Request, Response } from "express"; import { query } from "express-validator"; diff --git a/src/service/api/user/client-api/user-following.get.ts b/src/service/api/user/client-api/user-following.get.ts index 6adca272..193c0fbd 100644 --- a/src/service/api/user/client-api/user-following.get.ts +++ b/src/service/api/user/client-api/user-following.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "client-api/user-following" }); +const log = Logger.getLogger().child({ from: "user/client-api/user-following.get" }); import { Request, Response } from "express"; import { query } from "express-validator"; diff --git a/src/service/api/user/code.get.ts b/src/service/api/user/code.get.ts index 5555b784..fc40c9cf 100644 --- a/src/service/api/user/code.get.ts +++ b/src/service/api/user/code.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/code" }); +const log = Logger.getLogger().child({ from: "user/code.get" }); import { Request, Response } from "express"; import { query } from "express-validator"; diff --git a/src/service/api/user/create.post.ts b/src/service/api/user/create.post.ts index c656ed5c..3344d376 100644 --- a/src/service/api/user/create.post.ts +++ b/src/service/api/user/create.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/create" }); +const log = Logger.getLogger().child({ from: "user/create.post" }); import { Request, Response } from "express"; import bcrypt from "bcrypt"; diff --git a/src/service/api/user/do-2fa.post.ts b/src/service/api/user/do-2fa.post.ts index f46e7b1b..93cf0442 100644 --- a/src/service/api/user/do-2fa.post.ts +++ b/src/service/api/user/do-2fa.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/do-2fa" }); +const log = Logger.getLogger().child({ from: "user/do-2fa.post" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/user/follow-entry.delete.ts b/src/service/api/user/follow-entry.delete.ts index 85ec83cc..1a60df60 100644 --- a/src/service/api/user/follow-entry.delete.ts +++ b/src/service/api/user/follow-entry.delete.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/delete-follow-request" }); +const log = Logger.getLogger().child({ from: "user/follow-entry.delete" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/user/follow-request.patch.ts b/src/service/api/user/follow-request.patch.ts index f5d38c71..19b65b2f 100644 --- a/src/service/api/user/follow-request.patch.ts +++ b/src/service/api/user/follow-request.patch.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/accept-follow-request" }); +const log = Logger.getLogger().child({ from: "user/follow-request.patch" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/user/follow-requests.get.ts b/src/service/api/user/follow-requests.get.ts index 011b940c..d27c44df 100644 --- a/src/service/api/user/follow-requests.get.ts +++ b/src/service/api/user/follow-requests.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/follow-requests" }); +const log = Logger.getLogger().child({ from: "user/follow-requests.get" }); import { Request, Response } from "express"; import { mongo } from "mongoose"; diff --git a/src/service/api/user/follow-status.get.ts b/src/service/api/user/follow-status.get.ts index e458ebd6..7e36ece5 100644 --- a/src/service/api/user/follow-status.get.ts +++ b/src/service/api/user/follow-status.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/follow-status" }); +const log = Logger.getLogger().child({ from: "user/follow-status.get" }); import { Request, Response } from "express"; import { query } from "express-validator"; diff --git a/src/service/api/user/follow.post.ts b/src/service/api/user/follow.post.ts index fb1efcff..03af989e 100644 --- a/src/service/api/user/follow.post.ts +++ b/src/service/api/user/follow.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/follow" }); +const log = Logger.getLogger().child({ from: "user/follow.post" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/user/followers.get.ts b/src/service/api/user/followers.get.ts index 3595240f..32fc47db 100644 --- a/src/service/api/user/followers.get.ts +++ b/src/service/api/user/followers.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/followers" }); +const log = Logger.getLogger().child({ from: "user/followers.get" }); import { Request, Response } from "express"; diff --git a/src/service/api/user/following.get.ts b/src/service/api/user/following.get.ts index 93760302..315d085d 100644 --- a/src/service/api/user/following.get.ts +++ b/src/service/api/user/following.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/following" }); +const log = Logger.getLogger().child({ from: "user/following.get" }); import { Request, Response } from "express"; diff --git a/src/service/api/user/invite-codes.get.ts b/src/service/api/user/invite-codes.get.ts index 03be9411..cf6f40c8 100644 --- a/src/service/api/user/invite-codes.get.ts +++ b/src/service/api/user/invite-codes.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/invite-codes" }); +const log = Logger.getLogger().child({ from: "user/invite-codes.get" }); import { Request, Response } from "express"; import moment from "moment"; diff --git a/src/service/api/user/login-history.get.ts b/src/service/api/user/login-history.get.ts index f406da02..3f56b1a6 100644 --- a/src/service/api/user/login-history.get.ts +++ b/src/service/api/user/login-history.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/login-history" }); +const log = Logger.getLogger().child({ from: "user/login-history.get" }); import { Request, Response } from "express"; diff --git a/src/service/api/user/login.post.ts b/src/service/api/user/login.post.ts index 45f2e11b..23798cb3 100644 --- a/src/service/api/user/login.post.ts +++ b/src/service/api/user/login.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/login" }); +const log = Logger.getLogger().child({ from: "user/login.post" }); import bcrypt from "bcrypt"; import { Request, Response } from "express"; diff --git a/src/service/api/user/logout.get.ts b/src/service/api/user/logout.get.ts index 2d78e34f..2390220a 100644 --- a/src/service/api/user/logout.get.ts +++ b/src/service/api/user/logout.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/logout" }); +const log = Logger.getLogger().child({ from: "user/logout.get" }); import { Request, Response } from "express"; diff --git a/src/service/api/user/me.get.ts b/src/service/api/user/me.get.ts index 6d6dd10c..a384fcc0 100644 --- a/src/service/api/user/me.get.ts +++ b/src/service/api/user/me.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/me" }); +const log = Logger.getLogger().child({ from: "user/me.get" }); import { Request, Response } from "express"; diff --git a/src/service/api/user/me.patch.ts b/src/service/api/user/me.patch.ts index aa4f94e7..f9881605 100644 --- a/src/service/api/user/me.patch.ts +++ b/src/service/api/user/me.patch.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/me" }); +const log = Logger.getLogger().child({ from: "user/me.patch" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/user/private.post.ts b/src/service/api/user/private.post.ts index 86c55f84..0f4d7acb 100644 --- a/src/service/api/user/private.post.ts +++ b/src/service/api/user/private.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/switch-private" }); +const log = Logger.getLogger().child({ from: "user/private.post" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/user/profile-picture.delete.ts b/src/service/api/user/profile-picture.delete.ts index 172d7f39..c700eff5 100644 --- a/src/service/api/user/profile-picture.delete.ts +++ b/src/service/api/user/profile-picture.delete.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/unfollow" }); +const log = Logger.getLogger().child({ from: "user/profile-picture.delete" }); import { Request, Response } from "express"; diff --git a/src/service/api/user/profile-picture.patch.ts b/src/service/api/user/profile-picture.patch.ts index 9df8bc75..9082244e 100644 --- a/src/service/api/user/profile-picture.patch.ts +++ b/src/service/api/user/profile-picture.patch.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/unfollow" }); +const log = Logger.getLogger().child({ from: "user/profile-picture.patch" }); import { Request, Response } from "express"; import { S3Client } from "@aws-sdk/client-s3"; diff --git a/src/service/api/user/reset-password.post.ts b/src/service/api/user/reset-password.post.ts index 06ad5e29..bd00d2e6 100644 --- a/src/service/api/user/reset-password.post.ts +++ b/src/service/api/user/reset-password.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/reset-password" }); +const log = Logger.getLogger().child({ from: "user/reset-password.post" }); import { Request, Response } from "express"; import bcrypt from "bcrypt"; diff --git a/src/service/api/user/scopes.get.ts b/src/service/api/user/scopes.get.ts index 68e3ab02..dcea0051 100644 --- a/src/service/api/user/scopes.get.ts +++ b/src/service/api/user/scopes.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/scopes" }); +const log = Logger.getLogger().child({ from: "user/scopes.get" }); import { Request, Response } from "express"; diff --git a/src/service/api/user/search.post.ts b/src/service/api/user/search.post.ts index d1cdc02e..8db60e57 100644 --- a/src/service/api/user/search.post.ts +++ b/src/service/api/user/search.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/search" }); +const log = Logger.getLogger().child({ from: "user/search.post" }); import { Request, Response } from "express"; diff --git a/src/service/api/user/session-state.get.ts b/src/service/api/user/session-state.get.ts index d033b4bc..674ca4d2 100644 --- a/src/service/api/user/session-state.get.ts +++ b/src/service/api/user/session-state.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/session-state" }); +const log = Logger.getLogger().child({ from: "user/session-state.get" }); import { Request, Response } from "express"; diff --git a/src/service/api/user/shared/access.post.ts b/src/service/api/user/shared/access.post.ts index a36d9895..5c8c32d9 100644 --- a/src/service/api/user/shared/access.post.ts +++ b/src/service/api/user/shared/access.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/admin-api/access" }); +const log = Logger.getLogger().child({ from: "user/shared/access.post" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/user/shared/ban.post.ts b/src/service/api/user/shared/ban.post.ts index ea297988..ac7ab4f8 100644 --- a/src/service/api/user/shared/ban.post.ts +++ b/src/service/api/user/shared/ban.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/common-api/ban" }); +const log = Logger.getLogger().child({ from: "user/shared/ban.post" }); import { Request, Response } from "express"; import { isValidObjectId } from "mongoose"; diff --git a/src/service/api/user/shared/create.post.ts b/src/service/api/user/shared/create.post.ts index 5dad81fd..fd26b3ed 100644 --- a/src/service/api/user/shared/create.post.ts +++ b/src/service/api/user/shared/create.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "admin-api/user/create" }); +const log = Logger.getLogger().child({ from: "user/shared/create.post" }); import { Request, Response } from "express"; import bcrypt from "bcrypt"; diff --git a/src/service/api/user/shared/credits.post.ts b/src/service/api/user/shared/credits.post.ts index 87d82393..1b12964f 100644 --- a/src/service/api/user/shared/credits.post.ts +++ b/src/service/api/user/shared/credits.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/common-api/credits" }); +const log = Logger.getLogger().child({ from: "user/shared/credits.post" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/user/shared/invite-codes.get.ts b/src/service/api/user/shared/invite-codes.get.ts index a072db41..2aff3fe1 100644 --- a/src/service/api/user/shared/invite-codes.get.ts +++ b/src/service/api/user/shared/invite-codes.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/admin-api/invite-codes.get" }); +const log = Logger.getLogger().child({ from: "user/shared/invite-codes.get" }); import { Request, Response } from "express"; import { query } from "express-validator"; diff --git a/src/service/api/user/shared/invite-codes.post.ts b/src/service/api/user/shared/invite-codes.post.ts index c28f71cf..a1d9e851 100644 --- a/src/service/api/user/shared/invite-codes.post.ts +++ b/src/service/api/user/shared/invite-codes.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/admin-api/invite-codes.post" }); +const log = Logger.getLogger().child({ from: "user/shared/invite-codes.post" }); import { Request, Response } from "express"; import { isValidObjectId } from "mongoose"; diff --git a/src/service/api/user/shared/list.get.ts b/src/service/api/user/shared/list.get.ts index 8a297fa8..c0e2b869 100644 --- a/src/service/api/user/shared/list.get.ts +++ b/src/service/api/user/shared/list.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/common-api/get-user-info" }); +const log = Logger.getLogger().child({ from: "user/shared/list.get" }); import { Request, Response } from "express"; diff --git a/src/service/api/user/shared/restrict.post.ts b/src/service/api/user/shared/restrict.post.ts index bf722f4d..59b6e94e 100644 --- a/src/service/api/user/shared/restrict.post.ts +++ b/src/service/api/user/shared/restrict.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/common-api/restrict" }); +const log = Logger.getLogger().child({ from: "user/shared/restrict.post" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/user/shared/roles.get.ts b/src/service/api/user/shared/roles.get.ts index a618470a..30f4b2d6 100644 --- a/src/service/api/user/shared/roles.get.ts +++ b/src/service/api/user/shared/roles.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "admin-api/roles.get" }); +const log = Logger.getLogger().child({ from: "user/shared/roles.get" }); import { Request, Response } from "express"; diff --git a/src/service/api/user/shared/subscription-tiers.get.ts b/src/service/api/user/shared/subscription-tiers.get.ts index 79e31d8f..aa797776 100644 --- a/src/service/api/user/shared/subscription-tiers.get.ts +++ b/src/service/api/user/shared/subscription-tiers.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "admin-api/editable-fields" }); +const log = Logger.getLogger().child({ from: "user/shared/subscription-tiers.get" }); import { Request, Response } from "express"; diff --git a/src/service/api/user/shared/subscription.post.ts b/src/service/api/user/shared/subscription.post.ts index d81dfd93..b13f641b 100644 --- a/src/service/api/user/shared/subscription.post.ts +++ b/src/service/api/user/shared/subscription.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/common-api/subscription" }); +const log = Logger.getLogger().child({ from: "user/shared/subscription.post" }); import { Request, Response } from "express"; import moment from "moment"; diff --git a/src/service/api/user/shared/user-info.get.ts b/src/service/api/user/shared/user-info.get.ts index 035767e1..2f869354 100644 --- a/src/service/api/user/shared/user-info.get.ts +++ b/src/service/api/user/shared/user-info.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/common-api/user-info.get" }); +const log = Logger.getLogger().child({ from: "user/shared/user-info.get" }); import { Request, Response } from "express"; import { query } from "express-validator"; diff --git a/src/service/api/user/unblock.post.ts b/src/service/api/user/unblock.post.ts index 047b2e57..e4976d42 100644 --- a/src/service/api/user/unblock.post.ts +++ b/src/service/api/user/unblock.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/unblock" }); +const log = Logger.getLogger().child({ from: "user/unblock.post" }); import { Request, Response } from "express"; import { body } from "express-validator"; diff --git a/src/service/api/user/unfollow.post.ts b/src/service/api/user/unfollow.post.ts index cdfde23c..915e0b23 100644 --- a/src/service/api/user/unfollow.post.ts +++ b/src/service/api/user/unfollow.post.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/unfollow" }); +const log = Logger.getLogger().child({ from: "user/unfollow.post" }); import { Request, Response } from "express"; diff --git a/src/service/api/user/verify-email.get.ts b/src/service/api/user/verify-email.get.ts index 3bdf3dc0..485f6b5c 100644 --- a/src/service/api/user/verify-email.get.ts +++ b/src/service/api/user/verify-email.get.ts @@ -1,5 +1,5 @@ import { Logger } from "../../../singleton/logger"; -const log = Logger.getLogger().child({ from: "user/verify-email" }); +const log = Logger.getLogger().child({ from: "user/verify-email.get" }); import { Request, Response } from "express"; import { query } from "express-validator";