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

Logging fixes #598

Merged
merged 3 commits into from
Jan 13, 2020
Merged

Logging fixes #598

merged 3 commits into from
Jan 13, 2020

Conversation

roman-khimov
Copy link
Member

Problem

Tune logs for benchmarking and fix some things. Related to #284.

@roman-khimov roman-khimov added this to the v0.72.0 milestone Jan 13, 2020
@roman-khimov roman-khimov requested a review from fyrchik January 13, 2020 14:01
@codecov
Copy link

codecov bot commented Jan 13, 2020

Codecov Report

Merging #598 into master will not change coverage.
The diff coverage is 7.14%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #598   +/-   ##
=======================================
  Coverage   63.32%   63.32%           
=======================================
  Files         122      122           
  Lines       10074    10074           
=======================================
  Hits         6379     6379           
  Misses       3399     3399           
  Partials      296      296
Impacted Files Coverage Δ
pkg/network/tcp_transport.go 0% <0%> (ø) ⬆️
pkg/rpc/server.go 79.46% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f796749...2192b66. Read the comment docs.

It's not safe, we don't want to lose messages and we don't have that many of
them to try to figure out what is the better value than the default 100.
Makes no sense polluting logs with Info. It also affects benchmarking.
It doesn't make sense trying to read from a broken connection and the
disconnect is to be logger from the server on unregistration.
@volekerb volekerb merged commit fe7cca7 into master Jan 13, 2020
@volekerb volekerb deleted the loging-fixes branch January 13, 2020 14:37
roman-khimov added a commit to nspcc-dev/neofs-node that referenced this pull request Nov 13, 2024
The default Zap config is:

> Sampling is enabled at 100:100 by default, meaning that after the first 100 log entries with the same level and message in the same second, it will log every 100th entry with the same level and message in the same second. You may disable this behavior by setting Sampling to nil.

It leads to message loss too easily and we care a lot about each and every
object. Notice that it was disabled in NeoGo as well
in a52e016c22de2269fcc7362f33317cebfa7e8e4c (nspcc-dev/neo-go#598).

Signed-off-by: Roman Khimov <roman@nspcc.ru>
roman-khimov added a commit to nspcc-dev/neofs-node that referenced this pull request Nov 13, 2024
The default Zap config is:

> Sampling is enabled at 100:100 by default, meaning that after the first 100 log entries with the same level and message in the same second, it will log every 100th entry with the same level and message in the same second. You may disable this behavior by setting Sampling to nil.

It leads to message loss too easily and we care a lot about each and every
object. Notice that it was disabled in NeoGo as well
in a52e016c22de2269fcc7362f33317cebfa7e8e4c (nspcc-dev/neo-go#598).

Signed-off-by: Roman Khimov <roman@nspcc.ru>
carpawell added a commit to nspcc-dev/neofs-node that referenced this pull request Nov 13, 2024
The default Zap config is:

> Sampling is enabled at 100:100 by default, meaning that after the
first 100 log entries with the same level and message in the same
second, it will log every 100th entry with the same level and message in
the same second. You may disable this behavior by setting Sampling to
nil.

It leads to message loss too easily and we care a lot about each and
every object. Notice that it was disabled in NeoGo as well in
a52e016c22de2269fcc7362f33317cebfa7e8e4c
(nspcc-dev/neo-go#598).
carpawell pushed a commit to nspcc-dev/neofs-node that referenced this pull request Nov 13, 2024
The default Zap config is:

> Sampling is enabled at 100:100 by default, meaning that after the first 100 log entries with the same level and message in the same second, it will log every 100th entry with the same level and message in the same second. You may disable this behavior by setting Sampling to nil.

It leads to message loss too easily and we care a lot about each and every
object. Notice that it was disabled in NeoGo as well
in a52e016c22de2269fcc7362f33317cebfa7e8e4c (nspcc-dev/neo-go#598).

Signed-off-by: Roman Khimov <roman@nspcc.ru>

(cherry picked from commit 0ffbfc1)
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
roman-khimov added a commit to nspcc-dev/neofs-s3-gw that referenced this pull request Nov 13, 2024
Skipping log lines is not safe to be used by default. Notice that s3-authmate
doesn't have this problem because of the way it constructs its settings.

See also:
 * nspcc-dev/neofs-node#3011
 * nspcc-dev/neo-go#598

Signed-off-by: Roman Khimov <roman@nspcc.ru>
roman-khimov added a commit to nspcc-dev/neo-exporter that referenced this pull request Nov 13, 2024
Skipping log lines is not safe to be used by default. Notice that s3-authmate
doesn't have this problem because of the way it constructs its settings.

See also:
 * nspcc-dev/neofs-node#3011
 * nspcc-dev/neo-go#598

Signed-off-by: Roman Khimov <roman@nspcc.ru>
roman-khimov added a commit to nspcc-dev/neofs-oauthz that referenced this pull request Nov 13, 2024
Skipping log lines is not safe to be used by default. Notice that s3-authmate
doesn't have this problem because of the way it constructs its settings.

See also:
 * nspcc-dev/neofs-node#3011
 * nspcc-dev/neo-go#598

Signed-off-by: Roman Khimov <roman@nspcc.ru>
roman-khimov added a commit to nspcc-dev/neofs-rest-gw that referenced this pull request Nov 13, 2024
Skipping log lines is not safe to be used by default. Notice that s3-authmate
doesn't have this problem because of the way it constructs its settings.

See also:
 * nspcc-dev/neofs-node#3011
 * nspcc-dev/neo-go#598

Signed-off-by: Roman Khimov <roman@nspcc.ru>
carpawell added a commit to nspcc-dev/neofs-oauthz that referenced this pull request Nov 13, 2024
Skipping log lines is not safe to be used by default. Notice that
s3-authmate doesn't have this problem because of the way it constructs
its settings.

See also:
 * nspcc-dev/neofs-node#3011
 * nspcc-dev/neo-go#598
roman-khimov added a commit to nspcc-dev/neofs-rest-gw that referenced this pull request Nov 13, 2024
Skipping log lines is not safe to be used by default.

See also:
 * nspcc-dev/neofs-node#3011
 * nspcc-dev/neo-go#598

Signed-off-by: Roman Khimov <roman@nspcc.ru>
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.

3 participants