Skip to content

Logging in scamLogs #38

Open
Open
@benw202

Description

@benw202

Bug type

Utility or complex functionality issue

Describe the bug

Just need to change the logging in the scamLogs handler to make it clearer that it is from scam logs

Logger.info('Starting Infraction process');

            const newInfraction = {
                infractionType: 'ScamLog',
                moderatorID: msg.client.user.id,
                reason: `Message content: ${msg.content.toString()}`,
                date: new Date(),
                infractionID: new mongoose.Types.ObjectId(),
            };

            let userData = await Infraction.findOne({ UserID: msg.author.id });

            log(userData);

For example, just prefix with scamLogs

(Other commands may benefit from this, I just saw this when flicking through logs)

Expected behavior

Prefix the logs

Steps to reproduce

Run the command and check logs

References (optional)

No response

Additional info (optional)

No response

Discord Username (optional)

benw8484

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions