node: Put in log info about listening endpoints #714
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#714
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "acid-ant/frostfs-node:bugfix/709-log-interface"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Close #709
Logs example:
Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com
@ -42,6 +43,8 @@ func (cmp *httpComponent) init(c *cfg) {
cmp.name,
func(ctx context.Context) {
runAndLog(ctx, c, cmp.name, false, func(context.Context, *cfg) {
c.log.Info(fmt.Sprintf("start listening %s endpoint", cmp.name),
How about
zap.String("service", cmp.name)
?Much better, updated.
918f08d106
to1a1a739bd8
@ -42,6 +44,9 @@ func (cmp *httpComponent) init(c *cfg) {
cmp.name,
func(ctx context.Context) {
runAndLog(ctx, c, cmp.name, false, func(context.Context, *cfg) {
c.log.Info(fmt.Sprintf(logs.FrostFSNodeStartListeningEndpoint),
fmt.Sprintf
can be removed now?1a1a739bd8
to079fe2b4af
I don't see how it is related, but does 1.21 tests run locally for you? They fail on CI with some "mIssing package" error.
I am also surprised by this issue, it prompted me to put 1.21 at last, but everything is build and run fine locally.
dstepanov-yadro referenced this pull request2023-11-28 14:05:37 +00:00