Skip to content

Report errors during parsing stage #22

Open

Description

@Emyrk

Parsing errors are logged via slog.Logger

preview/preview.go

Lines 32 to 33 in 26db550

slog.SetLogLoggerLevel(slog.LevelDebug)
slog.SetDefault(slog.New(log.NewHandler(os.Stderr, nil)))

This needs to be corrected to not use the global logger. These warnings/errors should be silenced at worst, and reported at best via diagnostics.

Activity

  1. self-assigned this
    on Mar 5, 2025
  2. added theissue type on Mar 5, 2025
  3. changed the title [-]Errors during parsing stage should be reported[/-] [+]Report errors during parsing stage[/+] on Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions