tarantool / tarantool/tarantool

log: follow TT_LOG_LEVEL before log.cfg()/box.cfg()

Open
#8,092 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature logger
Dominant language
Lua
Stars
3.7k
Forks
419
Avg merge
1d 23h
Merged PRs (30d)
88

Description

It is convenient to inspect what is going on the early loading stage (before any user Lua script is run).

Now the default log level is hardcoded as INFO and there is no way to obtain debug messages that are issued at tarantool loading.

https://github.com/tarantool/tarantool/blob/f72efbc24c50a0b9784188e8ea680692f8f3daaa/src/lib/core/say.c#L53-L57

https://github.com/tarantool/tarantool/blob/f72efbc24c50a0b9784188e8ea680692f8f3daaa/src/lib/core/say.c#L101-L111

See also #6011.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the cited sections of src/lib/core/say.c as the entry point and read issue #6011 for context. Trace logging during startup before user Lua code and before log.cfg()/box.cfg(); done when TT_LOG_LEVEL controls that early log level and enables debug messages during loading.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, lua
Domain
backend, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.