mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
feat: removed source property from logger
This commit is contained in:
1 parent
72ae790cf8
commit
9aaba5ea40
37 files changed
+17
-55
No files matched your search
@@ -15,7 +15,6 @@ const systemOptions: SystemOptions = config.get('systemOptions');
|
||||
const executionId: string = uuidv4();
|
||||
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'deploySlashCommands.js',
|
||||
module: 'deploy',
|
||||
name: 'deploySlashCommands',
|
||||
executionId: executionId
|
||||
|
||||
@@ -5,7 +5,6 @@ import { Logger } from 'pino';
|
||||
|
||||
export const createClient = async ({ executionId }: { executionId: string }) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'createClient.js',
|
||||
module: 'utilFactory',
|
||||
name: 'createClient',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -6,7 +6,6 @@ import { Logger } from 'pino';
|
||||
|
||||
export const createPlayer = async ({ client, executionId }: CreatePlayerParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'createPlayer.js',
|
||||
module: 'utilFactory',
|
||||
name: 'createPlayer',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -8,7 +8,6 @@ import { ClientRequest, ClientRequestArgs } from 'node:http';
|
||||
|
||||
export const postBotStats = async ({ client, executionId }: PostBotStatsParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'postBotStats.js',
|
||||
module: 'utilOther',
|
||||
name: 'postBotStats',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -10,7 +10,6 @@ const loadTestOptions: LoadTestOptions = config.get('loadTestOptions');
|
||||
|
||||
export const startLoadTest = async ({ client, executionId }: StartLoadTestParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'startLoadTest.js',
|
||||
module: 'utilOther',
|
||||
name: 'startLoadTest',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -9,7 +9,6 @@ import { ExtendedClient } from '../types/clientTypes';
|
||||
|
||||
export const registerClientInteractions = async ({ client, executionId }: RegisterClientInteractionsParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'registerClientInteractions.js',
|
||||
module: 'register',
|
||||
name: 'registerClientInteractions',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -44,7 +44,6 @@ const registerPlayerEventListeners = (player: Player, event: CustomEvent, logger
|
||||
|
||||
export const registerEventListeners = async ({ client, player, executionId }: RegisterEventListenersParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'registerEventListeners.js',
|
||||
module: 'register',
|
||||
name: 'registerEventListeners',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -4,7 +4,6 @@ import { GetUptimeFormattedParams } from '../../types/utilTypes';
|
||||
|
||||
export const getUptimeFormatted = async ({ executionId }: GetUptimeFormattedParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'getUptimeFormatted.js',
|
||||
module: 'utilSystem',
|
||||
name: 'getUptimeFormatted',
|
||||
executionId: executionId
|
||||
|
||||
@@ -17,7 +17,6 @@ import { CannotJoinVoiceOrTalkParams, CannotSendMessageInChannelParams } from '.
|
||||
const embedOptions: EmbedOptions = config.get('embedOptions');
|
||||
export const cannotJoinVoiceOrTalk = async ({ interaction, executionId }: CannotJoinVoiceOrTalkParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'permissionValidator.js',
|
||||
module: 'utilValidation',
|
||||
name: 'cannotJoinVoiceOrTalk',
|
||||
executionId: executionId,
|
||||
@@ -52,7 +51,6 @@ export const cannotJoinVoiceOrTalk = async ({ interaction, executionId }: Cannot
|
||||
|
||||
export const cannotSendMessageInChannel = async ({ interaction, executionId }: CannotSendMessageInChannelParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'permissionValidator.js',
|
||||
module: 'utilValidation',
|
||||
name: 'cannotSendMessageInChannel',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -9,7 +9,6 @@ import { Logger } from 'pino';
|
||||
const embedOptions: EmbedOptions = config.get('embedOptions');
|
||||
export const queueDoesNotExist = async ({ interaction, queue, executionId }: QueueDoesNotExistParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'queueValidator.js',
|
||||
module: 'utilValidation',
|
||||
name: 'queueDoesNotExist',
|
||||
executionId: executionId,
|
||||
@@ -40,7 +39,6 @@ export const queueDoesNotExist = async ({ interaction, queue, executionId }: Que
|
||||
|
||||
export const queueNoCurrentTrack = async ({ interaction, queue, executionId }: QueueNoCurrentTrackParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'queueValidator.js',
|
||||
module: 'utilValidation',
|
||||
name: 'queueNoCurrentTrack',
|
||||
executionId: executionId,
|
||||
@@ -71,7 +69,6 @@ export const queueNoCurrentTrack = async ({ interaction, queue, executionId }: Q
|
||||
|
||||
export const queueIsEmpty = async ({ interaction, queue, executionId }: QueueIsEmptyParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'queueValidator.js',
|
||||
module: 'utilValidation',
|
||||
name: 'queueIsEmpty',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -4,7 +4,6 @@ import { TransformQueryParams } from '../../types/utilTypes';
|
||||
|
||||
export const transformQuery = async ({ query, executionId }: TransformQueryParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'searchQueryValidator.js',
|
||||
module: 'utilValidation',
|
||||
name: 'transformQuery',
|
||||
executionId: executionId
|
||||
|
||||
@@ -10,7 +10,6 @@ const embedOptions: EmbedOptions = config.get('embedOptions');
|
||||
const systemOptions: SystemOptions = config.get('systemOptions');
|
||||
export const notValidGuildId = async ({ interaction, executionId }: NotValidGuildIdParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'systemCommandValidator.js',
|
||||
module: 'utilValidation',
|
||||
name: 'notValidGuildId',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -9,7 +9,6 @@ import { NotInSameVoiceChannelParams, NotInVoiceChannelParams } from '../../type
|
||||
const embedOptions: EmbedOptions = config.get('embedOptions');
|
||||
export const notInVoiceChannel = async ({ interaction, executionId }: NotInVoiceChannelParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'voiceChannelValidator.js',
|
||||
module: 'validator',
|
||||
name: 'notInVoiceChannel',
|
||||
executionId: executionId,
|
||||
@@ -40,7 +39,6 @@ export const notInVoiceChannel = async ({ interaction, executionId }: NotInVoice
|
||||
|
||||
export const notInSameVoiceChannel = async ({ interaction, queue, executionId }: NotInSameVoiceChannelParams) => {
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'voiceChannelValidator.js',
|
||||
module: 'utilValidation',
|
||||
name: 'notInSameVoiceChannel',
|
||||
executionId: executionId,
|
||||
|
||||
Reference in new issue
Block a user