mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 14:38:49 +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
@@ -11,7 +11,6 @@ module.exports = {
|
||||
execute: async (message: string) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'debug.js',
|
||||
module: 'event',
|
||||
name: 'clientDebug',
|
||||
executionId: executionId
|
||||
|
||||
@@ -16,7 +16,6 @@ module.exports = {
|
||||
execute: async (client: ExtendedClient) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'disconnect.js',
|
||||
module: 'event',
|
||||
name: 'clientDisconnect',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -11,7 +11,6 @@ module.exports = {
|
||||
execute: async (error: Error) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'error.js',
|
||||
module: 'event',
|
||||
name: 'clientError',
|
||||
executionId: executionId
|
||||
|
||||
@@ -11,7 +11,6 @@ module.exports = {
|
||||
execute: async (guild: Guild) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'guildCreate.js',
|
||||
module: 'event',
|
||||
name: 'guildCreate',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -11,7 +11,6 @@ module.exports = {
|
||||
execute: async (guild: Guild) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'guildDelete.js',
|
||||
module: 'event',
|
||||
name: 'guildDelete',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -20,7 +20,6 @@ module.exports = {
|
||||
execute: async (client: ExtendedClient) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'ready.js',
|
||||
module: 'event',
|
||||
name: 'clientReady',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -16,7 +16,6 @@ module.exports = {
|
||||
execute: async (client: ExtendedClient) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'reconnecting.js',
|
||||
module: 'event',
|
||||
name: 'clientReconnecting',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -10,7 +10,6 @@ module.exports = {
|
||||
execute: async (warning: string) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'warn.js',
|
||||
module: 'event',
|
||||
name: 'clientWarn',
|
||||
executionId: executionId
|
||||
|
||||
@@ -23,7 +23,6 @@ module.exports = {
|
||||
const inputTime: number = new Date().getTime();
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'interactionCreate.js',
|
||||
module: 'event',
|
||||
name: 'interactionCreate',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -9,7 +9,6 @@ module.exports = {
|
||||
execute: async (message: string) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'generalDebug.js',
|
||||
module: 'event',
|
||||
name: 'playerGeneralDebug',
|
||||
executionId: executionId
|
||||
|
||||
@@ -17,7 +17,6 @@ module.exports = {
|
||||
execute: async (queue: ExtendedGuildQueuePlayerNode, error: Error) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'generalError.js',
|
||||
module: 'event',
|
||||
name: 'playerGeneralError',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -9,7 +9,6 @@ module.exports = {
|
||||
execute: async (message: string) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'playerDebug.js',
|
||||
module: 'event',
|
||||
name: 'playerDebug',
|
||||
executionId: executionId
|
||||
|
||||
@@ -17,7 +17,6 @@ module.exports = {
|
||||
execute: async (queue: ExtendedGuildQueuePlayerNode, error: Error) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'playerError.js',
|
||||
module: 'event',
|
||||
name: 'playerError',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -18,7 +18,6 @@ module.exports = {
|
||||
execute: async (queue: ExtendedGuildQueuePlayerNode, track: Track) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'playerSkip.js',
|
||||
module: 'event',
|
||||
name: 'playerSkip',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -11,7 +11,6 @@ module.exports = {
|
||||
execute: async (queue: ExtendedGuildQueuePlayerNode, track: Track) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'playerStart.js',
|
||||
module: 'event',
|
||||
name: 'playerStart',
|
||||
executionId: executionId,
|
||||
|
||||
@@ -8,7 +8,6 @@ module.exports = {
|
||||
execute: async (error: Error) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'uncaughtException.js',
|
||||
module: 'event',
|
||||
name: 'uncaughtException',
|
||||
executionId: executionId
|
||||
|
||||
@@ -8,7 +8,6 @@ module.exports = {
|
||||
execute: async (error: Error) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'unhandledRejection.js',
|
||||
module: 'event',
|
||||
name: 'unhandledRejection',
|
||||
executionId: executionId
|
||||
|
||||
Reference in new issue
Block a user