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

Hide debug logs on startup #609

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Oct 7, 2024

Users were seeing unhelpful & extremely distracting [DEBUG] logs from init time. This commit hides the debug logs between when init is called for databricks/terraform-provider-databricks and when init is called for github.com/pulumi/pulumi-databricks/provider.

Fixes #474

@iwahbe iwahbe added the needs-release/patch When a PR with this label merges, it initiates a release of vX.Y.Z+1 label Oct 7, 2024
@iwahbe iwahbe requested review from guineveresaenger, VenelinMartinov and a team October 7, 2024 17:51
@iwahbe iwahbe self-assigned this Oct 7, 2024
Copy link

github-actions bot commented Oct 7, 2024

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

Copy link
Contributor

@VenelinMartinov VenelinMartinov left a comment

Choose a reason for hiding this comment

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

I think there's a few other providers with issues related to this, e.g. pulumi/pulumi-ise#9 - do we have a bridge issue to link this to?

provider/resources.go Outdated Show resolved Hide resolved
Copy link
Contributor

@guineveresaenger guineveresaenger left a comment

Choose a reason for hiding this comment

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

It is unclear how a.init() is called before databricks/init(), can we add what mechanic makes that work reliably?

I would like to see a followup issue that tracks how we might address this upstream/in the bridge and revert this change.

provider/a/init.go Outdated Show resolved Hide resolved
provider/a/init.go Outdated Show resolved Hide resolved
Users were seeing unhelpful & extremely distracting [DEBUG] logs from `init` time. This
commit hides the debug logs between when `init` is called for
databricks/terraform-provider-databricks and when `init` is called for
github.com/pulumi/pulumi-databricks/provider.

Fixes #474
@iwahbe iwahbe force-pushed the iwahbe/474/hide-debug-logs-on-startup branch from 15961ff to 593ca4b Compare October 8, 2024 10:21
@iwahbe iwahbe enabled auto-merge (rebase) October 8, 2024 10:23
@iwahbe iwahbe removed the needs-release/patch When a PR with this label merges, it initiates a release of vX.Y.Z+1 label Oct 8, 2024
@iwahbe iwahbe merged commit 17fdcc4 into main Oct 8, 2024
23 checks passed
@iwahbe iwahbe deleted the iwahbe/474/hide-debug-logs-on-startup branch October 8, 2024 10:32
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v1.51.0.

iwahbe added a commit to pulumi/pulumi that referenced this pull request Dec 6, 2024
This commit changes the log level from plugin stdout&stderr to debug, from info. This
change is significant because info is shown by default to users, but debug is not. While
this is a change of plugin aesthetics, it does not effect any runtime behavior. All
plugins, both component providers and custom resource providers, are effected.

> [!IMPORTANT]
> This is a breaking change, in that information which used to be displayed to users will
> now be hidden by default.
>
> We will need to share this change with our users before rolling it out.

The providers team has met and believe that this is the best approach for our
ecosystem. For a full discussion on why this change is necessary, see
[this doc](https://docs.google.com/document/d/1yYrwTwsNoayaIzKyG1l5cl0MjJxiHLsH4NqAvZkQN-I/edit?tab=t.0#heading=h.34v61lg1x4kl).

Fixes pulumi/pulumi-terraform-bridge#2489
Fixes pulumi/pulumi-cloudngfwaws#23
Fixes pulumi/pulumi-ise#9

Taking this change will allow us to revert:
- pulumi/pulumi-databricks#609
- pulumi/pulumi-aws#4650
iwahbe added a commit to pulumi/pulumi that referenced this pull request Dec 6, 2024
This commit changes the log level from plugin stdout&stderr to debug, from info. This
change is significant because info is shown by default to users, but debug is not. While
this is a change of plugin aesthetics, it does not effect any runtime behavior. All
plugins, both component providers and custom resource providers, are effected.

> [!IMPORTANT]
> This is a breaking change, in that information which used to be displayed to users will
> now be hidden by default.
>
> We will need to share this change with our users before rolling it out.

The providers team has met and believe that this is the best approach for our
ecosystem. For a full discussion on why this change is necessary, see
[this doc](https://docs.google.com/document/d/1yYrwTwsNoayaIzKyG1l5cl0MjJxiHLsH4NqAvZkQN-I/edit?tab=t.0#heading=h.34v61lg1x4kl).

Fixes pulumi/pulumi-terraform-bridge#2489
Fixes pulumi/pulumi-cloudngfwaws#23
Fixes pulumi/pulumi-ise#9

Taking this change will allow us to revert:
- pulumi/pulumi-databricks#609
- pulumi/pulumi-aws#4650
iwahbe added a commit to pulumi/pulumi that referenced this pull request Dec 6, 2024
This commit changes the log level from plugin stdout&stderr to debug, from info. This
change is significant because info is shown by default to users, but debug is not. While
this is a change of plugin aesthetics, it does not effect any runtime behavior. All
plugins, both component providers and custom resource providers, are effected.

> [!IMPORTANT]
> This is a breaking change, in that information which used to be displayed to users will
> now be hidden by default.
>
> We will need to share this change with our users before rolling it out.

The providers team has met and believe that this is the best approach for our
ecosystem. For a full discussion on why this change is necessary, see
[this doc](https://docs.google.com/document/d/1yYrwTwsNoayaIzKyG1l5cl0MjJxiHLsH4NqAvZkQN-I/edit?tab=t.0#heading=h.34v61lg1x4kl).

Fixes pulumi/pulumi-terraform-bridge#2489
Fixes pulumi/pulumi-cloudngfwaws#23
Fixes pulumi/pulumi-ise#9

Taking this change will allow us to revert:
- pulumi/pulumi-databricks#609
- pulumi/pulumi-aws#4650
iwahbe added a commit to pulumi/pulumi that referenced this pull request Dec 9, 2024
This commit changes the log level from plugin stdout&stderr to debug, from info. This
change is significant because info is shown by default to users, but debug is not. While
this is a change of plugin aesthetics, it does not effect any runtime behavior. All
plugins, both component providers and custom resource providers, are effected.

> [!IMPORTANT]
> This is a breaking change, in that information which used to be displayed to users will
> now be hidden by default.
>
> We will need to share this change with our users before rolling it out.

The providers team has met and believe that this is the best approach for our
ecosystem. For a full discussion on why this change is necessary, see
[this doc](https://docs.google.com/document/d/1yYrwTwsNoayaIzKyG1l5cl0MjJxiHLsH4NqAvZkQN-I/edit?tab=t.0#heading=h.34v61lg1x4kl).

Fixes pulumi/pulumi-terraform-bridge#2489
Fixes pulumi/pulumi-cloudngfwaws#23
Fixes pulumi/pulumi-ise#9

Taking this change will allow us to revert:
- pulumi/pulumi-databricks#609
- pulumi/pulumi-aws#4650

---

When a provider exists ungracefully, we dump *all* unstructured logs to the user. This
allows providers to output stack traces to users (so they can report them) when a provider
fails. We do not search for `panic` messages to isolate the stack trace, since we cannot
do that effectively in a cross-language way.
iwahbe added a commit to pulumi/pulumi that referenced this pull request Dec 9, 2024
This commit changes the log level from plugin stdout&stderr to debug, from info. This
change is significant because info is shown by default to users, but debug is not. While
this is a change of plugin aesthetics, it does not effect any runtime behavior. All
plugins, both component providers and custom resource providers, are effected.

> [!IMPORTANT]
> This is a breaking change, in that information which used to be displayed to users will
> now be hidden by default.
>
> We will need to share this change with our users before rolling it out.

The providers team has met and believe that this is the best approach for our
ecosystem. For a full discussion on why this change is necessary, see
[this doc](https://docs.google.com/document/d/1yYrwTwsNoayaIzKyG1l5cl0MjJxiHLsH4NqAvZkQN-I/edit?tab=t.0#heading=h.34v61lg1x4kl).

Fixes pulumi/pulumi-terraform-bridge#2489
Fixes pulumi/pulumi-cloudngfwaws#23
Fixes pulumi/pulumi-ise#9

Taking this change will allow us to revert:
- pulumi/pulumi-databricks#609
- pulumi/pulumi-aws#4650

---

When a provider exists ungracefully, we dump *all* unstructured logs to the user. This
allows providers to output stack traces to users (so they can report them) when a provider
fails. We do not search for `panic` messages to isolate the stack trace, since we cannot
do that effectively in a cross-language way.
iwahbe added a commit to pulumi/pulumi that referenced this pull request Dec 12, 2024
This commit changes the log level from plugin stdout&stderr to debug, from info. This
change is significant because info is shown by default to users, but debug is not. While
this is a change of plugin aesthetics, it does not effect any runtime behavior. All
plugins, both component providers and custom resource providers, are effected.

> [!IMPORTANT]
> This is a breaking change, in that information which used to be displayed to users will
> now be hidden by default.
>
> We will need to share this change with our users before rolling it out.

The providers team has met and believe that this is the best approach for our
ecosystem. For a full discussion on why this change is necessary, see
[this doc](https://docs.google.com/document/d/1yYrwTwsNoayaIzKyG1l5cl0MjJxiHLsH4NqAvZkQN-I/edit?tab=t.0#heading=h.34v61lg1x4kl).

Fixes pulumi/pulumi-terraform-bridge#2489
Fixes pulumi/pulumi-cloudngfwaws#23
Fixes pulumi/pulumi-ise#9

Taking this change will allow us to revert:
- pulumi/pulumi-databricks#609
- pulumi/pulumi-aws#4650

---

When a provider exists ungracefully, we dump *all* unstructured logs to the user. This
allows providers to output stack traces to users (so they can report them) when a provider
fails. We do not search for `panic` messages to isolate the stack trace, since we cannot
do that effectively in a cross-language way.
iwahbe added a commit to pulumi/pulumi that referenced this pull request Dec 12, 2024
This commit changes the log level from plugin stdout&stderr to debug, from info. This
change is significant because info is shown by default to users, but debug is not. While
this is a change of plugin aesthetics, it does not effect any runtime behavior. All
plugins, both component providers and custom resource providers, are effected.

> [!IMPORTANT]
> This is a breaking change, in that information which used to be displayed to users will
> now be hidden by default.
>
> We will need to share this change with our users before rolling it out.

The providers team has met and believe that this is the best approach for our
ecosystem. For a full discussion on why this change is necessary, see
[this doc](https://docs.google.com/document/d/1yYrwTwsNoayaIzKyG1l5cl0MjJxiHLsH4NqAvZkQN-I/edit?tab=t.0#heading=h.34v61lg1x4kl).

Fixes pulumi/pulumi-terraform-bridge#2489
Fixes pulumi/pulumi-cloudngfwaws#23
Fixes pulumi/pulumi-ise#9

Taking this change will allow us to revert:
- pulumi/pulumi-databricks#609
- pulumi/pulumi-aws#4650

---

When a provider exists ungracefully, we dump *all* unstructured logs to the user. This
allows providers to output stack traces to users (so they can report them) when a provider
fails. We do not search for `panic` messages to isolate the stack trace, since we cannot
do that effectively in a cross-language way.
iwahbe added a commit to pulumi/pulumi that referenced this pull request Dec 12, 2024
This commit changes the log level from plugin stdout&stderr to debug, from info. This
change is significant because info is shown by default to users, but debug is not. While
this is a change of plugin aesthetics, it does not effect any runtime behavior. All
plugins, both component providers and custom resource providers, are effected.

> [!IMPORTANT]
> This is a breaking change, in that information which used to be displayed to users will
> now be hidden by default.
>
> We will need to share this change with our users before rolling it out.

The providers team has met and believe that this is the best approach for our
ecosystem. For a full discussion on why this change is necessary, see
[this doc](https://docs.google.com/document/d/1yYrwTwsNoayaIzKyG1l5cl0MjJxiHLsH4NqAvZkQN-I/edit?tab=t.0#heading=h.34v61lg1x4kl).

Fixes pulumi/pulumi-terraform-bridge#2489
Fixes pulumi/pulumi-cloudngfwaws#23
Fixes pulumi/pulumi-ise#9

Taking this change will allow us to revert:
- pulumi/pulumi-databricks#609
- pulumi/pulumi-aws#4650

---

When a provider exists ungracefully, we dump *all* unstructured logs to the user. This
allows providers to output stack traces to users (so they can report them) when a provider
fails. We do not search for `panic` messages to isolate the stack trace, since we cannot
do that effectively in a cross-language way.
iwahbe added a commit to pulumi/pulumi that referenced this pull request Dec 12, 2024
This commit changes the log level from plugin stdout&stderr to debug, from info. This
change is significant because info is shown by default to users, but debug is not. While
this is a change of plugin aesthetics, it does not effect any runtime behavior. All
plugins, both component providers and custom resource providers, are effected.

> [!IMPORTANT]
> This is a breaking change, in that information which used to be displayed to users will
> now be hidden by default.
>
> We will need to share this change with our users before rolling it out.

The providers team has met and believe that this is the best approach for our
ecosystem. For a full discussion on why this change is necessary, see
[this doc](https://docs.google.com/document/d/1yYrwTwsNoayaIzKyG1l5cl0MjJxiHLsH4NqAvZkQN-I/edit?tab=t.0#heading=h.34v61lg1x4kl).

Fixes pulumi/pulumi-terraform-bridge#2489
Fixes pulumi/pulumi-cloudngfwaws#23
Fixes pulumi/pulumi-ise#9

Taking this change will allow us to revert:
- pulumi/pulumi-databricks#609
- pulumi/pulumi-aws#4650

---

When a provider exists ungracefully, we dump *all* unstructured logs to the user. This
allows providers to output stack traces to users (so they can report them) when a provider
fails. We do not search for `panic` messages to isolate the stack trace, since we cannot
do that effectively in a cross-language way.
github-merge-queue bot pushed a commit to pulumi/pulumi that referenced this pull request Dec 12, 2024
This commit changes the log level from plugin stdout&stderr to debug,
from info. This
change is significant because info is shown by default to users, but
debug is not. While
this is a change of plugin aesthetics, it does not effect any runtime
behavior. All
plugins, both component providers and custom resource providers, are
effected.

> [!IMPORTANT]
> This is a breaking change, in that information which used to be
displayed to users will
> now be hidden by default.
>
> We will need to share this change with our users before rolling it
out.

The providers team has met and believe that this is the best approach
for our
ecosystem. For a full discussion on why this change is necessary, see
[this
doc](https://docs.google.com/document/d/1yYrwTwsNoayaIzKyG1l5cl0MjJxiHLsH4NqAvZkQN-I/edit?tab=t.0#heading=h.34v61lg1x4kl).

Fixes pulumi/pulumi-terraform-bridge#2489
Fixes pulumi/pulumi-cloudngfwaws#23
Fixes pulumi/pulumi-ise#9

Taking this change will allow us to revert:
- pulumi/pulumi-databricks#609
- pulumi/pulumi-aws#4650

---

When a provider exists ungracefully, we dump *all* unstructured logs to
the user. This
allows providers to output stack traces to users (so they can report
them) when a provider
fails. We do not search for `panic` messages to isolate the stack trace,
since we cannot
do that effectively in a cross-language way.
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.

Debug logs from provider
4 participants