Skip to content

log.debug()/info()/warn()/error() must not fail on formatting errors #889

@rtsisyk

Description

@rtsisyk
tarantool> log.info('%d', nil)

---
- error: 'builtin/log.lua:26: bad argument #2 to ''format'' (number expected, got
    nil)'
...

The application should not crash due to logging problems!
Log functions must print something reasonable instead of failing on string.format().
Please add extra pcall there.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions