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

Redirect 'log' output to 'logging' #11007

Merged
merged 1 commit into from Oct 12, 2022
Merged

Redirect 'log' output to 'logging' #11007

merged 1 commit into from Oct 12, 2022

Conversation

Frassle
Copy link
Member

@Frassle Frassle commented Oct 12, 2022

Description

This is all very sad and makes me miss ILogger from the dotnet world 😞

Fixes #10996

Ignore the fact that this blob doesn't work, but note how it doesn't print "azureblob" at the start anymore.

fraser@IBASA-PC:~/projects/example$ ~/.pulumi/bin/pulumi login azblob://badblob?storage_account=fraser
2022/10/12 18:06:42 azureblob: constructed service URL: https://fraser.blob.core.windows.net
2022/10/12 18:06:42 azureblob.URLOpener: using NewDefaultAzureCredential
error: problem logging in: unable to check if bucket azblob://badblob?storage_account=fraser is accessible: blob (code=Unknown): GET https://fraser.blob.core.windows.net/badblob
--------------------------------------------------------------------------------
RESPONSE 401: 401 Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
ERROR CODE: InvalidAuthenticationInfo
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidAuthenticationInfo</Code><Message>Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:62cfd3fb-401e-0037-4f5d-de9c60000000
Time:2022-10-12T17:06:47.6896488Z</Message><AuthenticationErrorDetail>Issuer validation failed. Issuer did not match.</AuthenticationErrorDetail></Error>
--------------------------------------------------------------------------------

fraser@IBASA-PC:~/projects/example$ /home/fraser/go/bin/pulumi login azblob://badblob?storage_account=fraser
error: problem logging in: unable to check if bucket azblob://badblob?storage_account=fraser is accessible: blob (code=Unknown): GET https://fraser.blob.core.windows.net/badblob
--------------------------------------------------------------------------------
RESPONSE 401: 401 Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
ERROR CODE: InvalidAuthenticationInfo
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidAuthenticationInfo</Code><Message>Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:109305ab-b01e-006d-605d-de9ae1000000
Time:2022-10-12T17:06:59.0114531Z</Message><AuthenticationErrorDetail>Issuer validation failed. Issuer did not match.</AuthenticationErrorDetail></Error>
--------------------------------------------------------------------------------

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@pulumi-bot
Copy link
Contributor

pulumi-bot commented Oct 12, 2022

Changelog

[uncommitted] (2022-10-12)

Bug Fixes

  • [cli/display] Fix gocloud unconditonally writing to stderr.
    #11007

@Frassle
Copy link
Member Author

Frassle commented Oct 12, 2022

bors merge

@bors
Copy link
Contributor

bors bot commented Oct 12, 2022

Build succeeded:

@bors bors bot merged commit 1626003 into master Oct 12, 2022
@bors bors bot deleted the fraser/fixGocloudLogs branch October 12, 2022 18:23
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.

Azure blob storage backend unconditionally writes logs to stderr
3 participants