Skip to content

Revise logger levels #41

@carpawell

Description

@carpawell

Suggest general rule: "info" for external events AND for accepting events to share them with others (pushing "new epoch" event to chain); "debug" for internal changes (node gets "new epoch" and logs it via "info" but its internal handling could be logged with "debug").

Also, as it was discussed before, we have an quite rare but really important events that deserve "info"/"warn" level (since we store objects, we can log their removal with "warn" to prevent/investigate errors).

Also, some important events can move from "debug" to "info":

  1. Tree service sync. It is an important service that often requires some investigation;
  2. Any contract writings: reputation, container sizes, balance changes, audit reports, etc;
  3. GC work: start, finished, removed object number, etc;
  4. Many "errors but not errors": no empty space/half empty space/quarter empty space on WC/blobovniczas;
  5. Access errors (?);
  6. Many real errors are in "debug" but could be in "warn": removing objects errors, GC work errors; removing shard, closing shard, etc.

Also, i would expand "debug" with logs about every step inside every main process: before/after every contract info fetching; before/after every network communication; before/after every disk operation.

Suggestions are appreciated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions