Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: disable startup logs #41

Closed
wants to merge 1 commit into from

Conversation

alvarosevilla95
Copy link
Contributor

Currently, magenta emits the following message on startup:

----------------
[INFO] job# 3:
> [email protected] start
> npx tsx node/index.ts
----------------
[ERROR] job# 3:
(node:22097) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

This is a bit annoying as it pollutes the output of :messages. To fix this without disabling regular logs / errors coming from node:

  • hardcoded a check on log_line that suppreses the initial start command log
  • punycode is deprecated on the latest node LTS (22). Added --no-deprecation to tsx to suppress it

@dlants
Copy link
Owner

dlants commented Feb 4, 2025

superseded by d6931a0

@dlants dlants closed this Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants