Hide timestamp from logs #1377
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1377
Loading…
Reference in a new issue
No description provided.
Delete branch "a-savchuk/frostfs-node:logger-timestamp"
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 #1366
Signed-off-by: Aleksey Savchuk a.savchuk@yadro.com
prepend_timestamp
config option, update tests 4d7ba82560prepend_timestamp
config option, update tests6a9909a383
tod89c1b6484
d89c1b6484
to9aeb070f0b
@ -41,6 +41,8 @@ func reloadConfig() error {
if err != nil {
return err
}
logPrm.PrependTimestamp = cfg.GetBool("logger.prepend_timestamp")
just
timestamp: true/false
Fixed it
9aeb070f0b
to90f32b975c
Current behavior
Log with timestamp
Log without timestamp
WIP: Hide timestamp from logsto Hide timestamp from logsHide timestamp from logsto WIP: Hide timestamp from logsWIP: Hide timestamp from logsto Hide timestamp from logs@ -41,6 +41,8 @@ func reloadConfig() error {
if err != nil {
return err
}
logPrm.PrependTimestamp = cfg.GetBool("logger.timestamp")
Have you tried to run
frostfs-ir
after this change?)As far as I remember, for
frostfs-ir
you should define defaults too.GetBool
returns false by default if no config option was foundlogger.timestamp
90f32b975c
to8eff648791
@ -121,3 +123,4 @@
c.Sampling.Hook = prm.SamplingHook
}
if !prm.PrependTimestamp {
Why we need
!
here, once we haveelse
section?Fixed it
@ -145,3 +152,4 @@
c.Sampling.Hook = prm.SamplingHook
}
if !prm.PrependTimestamp {
Why we need
!
here, once we haveelse
section?Fixed it
8eff648791
tod4bec24c9f
New commits pushed, approval review dismissed automatically according to repository settings