Skip to content

Logs directory permissions or disk space may cause logger failures #5

@Miatya

Description

@Miatya

Problem

The BotLogger creates a log directory and appends logs to files, but does not handle write failures (such as insufficient permissions or disk full). This might cause unhandled exceptions or loss of error information when logging fails.

Steps to Reproduce

  1. Make the logs directory unwritable or fill the disk.
  2. Start the bot and trigger events that log messages.
  3. Observe whether unhandled exceptions are thrown or errors are reported.

Expected Behavior

Logger should gracefully handle file write failures and emit clear alerts rather than crashing or silently swallowing log messages.

Suggested Fix

  • Add try/catch around log file writes and report errors more robustly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions