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

tarantool / tarantool / 12496699135
88%

Build:
DEFAULT BRANCH: master
Ran 25 Dec 2024 09:41PM UTC
Jobs 1
Files 518
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Dec 2024 09:28PM UTC coverage: 87.372% (-0.001%) from 87.373%
12496699135

push

github

locker
log: encode table arguments in json

This is more convenient than calling `json.encode` manually.
It is also more efficient in case logging is skipped due to
the log level.

Closes #8611

@TarantoolBot document
Title: Document that logger now encodes table arguments in JSON

How it used to work:

```
tarantool> require('log').info('%s', {foo = 'bar'})
table: 0x41f9d2e8
```

How it works now:

```
tarantool> require('log').info('%s', {foo = 'bar'})
{"foo":"bar"}
```

Note, JSON encoding is enabled only for tables that don't have
the `__tostring` meta-method:

```
tarantool> require('log').info('%s', setmetatable({foo = 'bar'}, {__tostring = function() return 'foobar' end}))
foobar
```

69656 of 123526 branches covered (56.39%)

102646 of 117482 relevant lines covered (87.37%)

2404088.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12496699135.1 25 Dec 2024 09:41PM UTC 0
87.37
GitHub Action Run
Source Files on build 12496699135
Detailed source file information is not available for this build.
  • Back to Repo
  • 3db73c65 on github
  • Prev Build on master (#12494047249)
  • Next Build on master (#12502336736)
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