• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 16885022315

11 Aug 2025 03:45PM UTC coverage: 87.582% (-0.008%) from 87.59%
16885022315

push

github

locker
core: increase error logging verbosity from C

When compat option `box_error_serialize_verbose` is set to `new` then
`tostring` of Lua box error object prints error with increased
verbosity. This affects logging error from Lua. Unfortunately it does
not affect logging box error from C.

Let's move `tostring` logic to C code so we can align logging from Lua and
C.

Note that:

- error is logged from C verbosly unconditionally
  (`box_error_serialize_verbose` is not taken into account)
- details that printed before ':' are removed (error code for
  `ClientError` for example)

While at it we did next changes in `tostring()`:

- frames are printed from effect to cause
- prefix `Caused by: ` is added for cause frames

Note that `say_logger_free()` it patched so that logger can be
reinitialized in `unit/fiber.cc` test.

Closes #10116
Follow-up #9105

NO_DOC=minor change

70838 of 124753 branches covered (56.78%)

46 of 49 new or added lines in 7 files covered. (93.88%)

46 existing lines in 16 files now uncovered.

104061 of 118815 relevant lines covered (87.58%)

1373455.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.38
/src/lua/init.c


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc