Skip to content

Improve TF_LOG_PROVIDER logs #471

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 31, 2022
Merged

Improve TF_LOG_PROVIDER logs #471

merged 9 commits into from
Mar 31, 2022

Conversation

0x2b3bfa0
Copy link
Member

@0x2b3bfa0 0x2b3bfa0 commented Mar 31, 2022

This pull request introduces some visual and conceptual improvements to the TF_LOG_PROVIDER=INFO internal logs. This approach is still fairly unideal beyond all remedy, but at least is easier on the eyes for ANSI terminal users; see #423 (review) for context.

Before

Captura de pantalla 2022-03-31 a las 4 20 41

After

Captura de pantalla 2022-03-31 a las 4 20 56

@0x2b3bfa0 0x2b3bfa0 added ui/ux User interface/experience quote labels Mar 31, 2022
@0x2b3bfa0 0x2b3bfa0 requested a review from a team March 31, 2022 02:00
@0x2b3bfa0 0x2b3bfa0 self-assigned this Mar 31, 2022
@0x2b3bfa0 0x2b3bfa0 temporarily deployed to automatic March 31, 2022 02:00 Inactive
@0x2b3bfa0
Copy link
Member Author

Ok but why passed for AWS and azure?

Response times are different and the cached Read() has the right values.

@0x2b3bfa0 0x2b3bfa0 force-pushed the internal-log-hacks branch from 060dc43 to 2e56ae5 Compare March 31, 2022 16:14
@0x2b3bfa0 0x2b3bfa0 temporarily deployed to automatic March 31, 2022 16:20 Inactive
@0x2b3bfa0 0x2b3bfa0 temporarily deployed to automatic March 31, 2022 16:20 Inactive
@0x2b3bfa0 0x2b3bfa0 temporarily deployed to automatic March 31, 2022 16:20 Inactive
@0x2b3bfa0 0x2b3bfa0 temporarily deployed to automatic March 31, 2022 16:20 Inactive
@0x2b3bfa0 0x2b3bfa0 temporarily deployed to automatic March 31, 2022 16:34 Inactive
@0x2b3bfa0 0x2b3bfa0 temporarily deployed to automatic March 31, 2022 16:35 Inactive
@0x2b3bfa0 0x2b3bfa0 temporarily deployed to automatic March 31, 2022 16:35 Inactive
@0x2b3bfa0 0x2b3bfa0 temporarily deployed to automatic March 31, 2022 16:35 Inactive
@0x2b3bfa0 0x2b3bfa0 temporarily deployed to automatic March 31, 2022 16:35 Inactive
@0x2b3bfa0 0x2b3bfa0 requested review from DavidGOrtega and a team and removed request for DavidGOrtega March 31, 2022 18:22
Copy link
Contributor

@DavidGOrtega DavidGOrtega left a comment

Choose a reason for hiding this comment

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

❤️

@DavidGOrtega DavidGOrtega merged commit 2c61c5e into master Mar 31, 2022
@DavidGOrtega DavidGOrtega deleted the internal-log-hacks branch March 31, 2022 19:27
Comment on lines +75 to +82
if status["succeeded"] != nil && status["succeeded"].(int) >= d.Get("parallelism").(int) {
message = fmt.Sprintf("\x1b[%dmStatus: completed succesfully 🟢\x1b[0m", colors["SUCCESS"])
}
if status["failed"] != nil && status["failed"].(int) > 0 {
message = fmt.Sprintf("\x1b[%dmStatus: completed with errors 🔴\x1b[0m", colors["ERROR"])
}
if status["running"] != nil && status["running"].(int) >= d.Get("parallelism").(int) {
message = fmt.Sprintf("\x1b[%dmStatus: running 🟡\x1b[0m", colors["WARNING"])
Copy link
Member Author

Choose a reason for hiding this comment

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

Computed status, for future references

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui/ux User interface/experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants