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

Migrate access/msteams to slog + add debug logs #47045

Merged
merged 7 commits into from
Oct 3, 2024

Conversation

hugoShaka
Copy link
Contributor

This PR does two things:

  • migrate the msteams access plugin to slog
  • add a lot of debug log statements to make troubleshooting easier

changelog: Improve the msteams access plugin debug logging.

integrations/lib/logger/logger.go Outdated Show resolved Hide resolved
integrations/lib/logger/logger.go Outdated Show resolved Hide resolved
integrations/access/msteams/app.go Outdated Show resolved Hide resolved
integrations/access/msteams/app.go Outdated Show resolved Hide resolved
integrations/access/msteams/bot.go Outdated Show resolved Hide resolved
integrations/access/msteams/bot.go Outdated Show resolved Hide resolved
integrations/access/msteams/bot.go Outdated Show resolved Hide resolved
integrations/access/msteams/bot.go Outdated Show resolved Hide resolved
Copy link
Contributor

@rosstimothy rosstimothy left a comment

Choose a reason for hiding this comment

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

Thanks Hugo!

Comment on lines 177 to 179
"recipient", recipient,
"recipient_chat_id", recipientData.Chat.ID,
"recipient_kind", recipientData.Kind)
Copy link
Contributor

Choose a reason for hiding this comment

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

Might also benefit from a group here

@hugoShaka hugoShaka force-pushed the hugo/improve-access-msteams-log branch from 7c0797d to 0e38bd0 Compare October 2, 2024 18:45
@hugoShaka hugoShaka force-pushed the hugo/improve-access-msteams-log branch from 0e38bd0 to 6c7f79e Compare October 2, 2024 18:53
@hugoShaka hugoShaka added this pull request to the merge queue Oct 3, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 3, 2024
@hugoShaka hugoShaka added this pull request to the merge queue Oct 3, 2024
Merged via the queue into master with commit fd7030a Oct 3, 2024
41 checks passed
@hugoShaka hugoShaka deleted the hugo/improve-access-msteams-log branch October 3, 2024 19:41
@public-teleport-github-review-bot

@hugoShaka See the table below for backport results.

Branch Result
branch/v16 Failed

zmb3 added a commit that referenced this pull request Oct 3, 2024
Plugins build without CGo, so they can't import (directly or indirectly)
any packages that require CGo.

In #47045 we added a lib/config import to pull in a constant, which
added a large dependency tree that included CGo dependencies.

Fix the builds by duplicating the constant and avoiding the import.
@zmb3 zmb3 mentioned this pull request Oct 3, 2024
zmb3 added a commit that referenced this pull request Oct 3, 2024
Plugins build without CGo, so they can't import (directly or indirectly)
any packages that require CGo.

In #47045 we added a lib/config import to pull in a constant, which
added a large dependency tree that included CGo dependencies.

Fix the builds by duplicating the constant and avoiding the import.
github-merge-queue bot pushed a commit that referenced this pull request Oct 3, 2024
Plugins build without CGo, so they can't import (directly or indirectly)
any packages that require CGo.

In #47045 we added a lib/config import to pull in a constant, which
added a large dependency tree that included CGo dependencies.

Fix the builds by duplicating the constant and avoiding the import.
zmb3 added a commit that referenced this pull request Oct 3, 2024
Plugins build without CGo, so they can't import (directly or indirectly)
any packages that require CGo.

In #47045 we added a lib/config import to pull in a constant, which
added a large dependency tree that included CGo dependencies.

Fix the builds by duplicating the constant and avoiding the import.
@zmb3 zmb3 mentioned this pull request Oct 3, 2024
github-merge-queue bot pushed a commit that referenced this pull request Oct 4, 2024
Plugins build without CGo, so they can't import (directly or indirectly)
any packages that require CGo.

In #47045 we added a lib/config import to pull in a constant, which
added a large dependency tree that included CGo dependencies.

Fix the builds by duplicating the constant and avoiding the import.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants