Skip to content

logging changes #1049

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

Merged
merged 9 commits into from
Mar 11, 2025
Merged

logging changes #1049

merged 9 commits into from
Mar 11, 2025

Conversation

nullfunc
Copy link
Contributor

@nullfunc nullfunc commented Mar 7, 2025

Description

First go at updating CLI logs.

  • update log lines to be clearer
  • make term.warnf consistent to all errors
  • aggregate loglines for env.

Linked Issues

link

Checklist

  • I have performed a self-review of my code
  • I have added appropriate tests
  • I have updated the Defang CLI docs and/or README to reflect my changes, if necessary

@nullfunc nullfunc requested review from lionello and jordanstephens and removed request for lionello March 7, 2025 23:23
@nullfunc nullfunc requested a review from lionello March 7, 2025 23:49
@nullfunc nullfunc marked this pull request as ready for review March 10, 2025 16:25
Copy link
Member

@jordanstephens jordanstephens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome! Thanks for look through all of these. I made a few more suggestions that occurred to me as I read through them.

@@ -27,7 +27,6 @@ func fixupPort(port *composeTypes.ServicePortConfig) {
term.Debugf("port %d: ignoring 'published: %s' in 'ingress' mode", port.Target, port.Published)
}
if (port.Protocol == Protocol_TCP || port.Protocol == Protocol_UDP) && port.AppProtocol != "http" {
// term.Warnf("TCP ingress is not supported; assuming HTTP (remove 'protocol' to silence)")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this? seems helpful to me

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can keep the text for documentation and remove the term.Warnf part, don't want it to seem like stale/old code.

@nullfunc nullfunc merged commit 1d12330 into main Mar 11, 2025
12 checks passed
@nullfunc nullfunc deleted the eric-cleanup-logs branch March 11, 2025 05:29
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