Skip to content

Print Log Error Swallowing #17

@Pho3b

Description

@Pho3b

The base.go printLog() method does not return an error.

  • Issue: If j.write(...) to the os.File fails (disk full, permissions lost), the error is silently ignored.
  • Fix: While logging libraries usually don't crash the app on failure, it is good practice to have a fallback (like writing to stderr if the primary log file fails) or at least an internal error reporting mechanism.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions