Skip to content

[Logging] Putting instance attribute as thread context key value pairs #4

@ozgurbudak

Description

@ozgurbudak

We can put instance variables such as name id, num id as thread context key-value pairs. By doing so, the logger can automatically add these variables into the log variables.

One catch is that if we do that output of some logs can be wrong for some test cases eg: concurrentInsertions
This is because the test case creates all skip node instances in one thread and then inserts them in separate threads.

If we do the above change, we should also modify such cases so that, we can avoid faulty logs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions