-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add syntax sugar for more convenient logging
You can use `luatest.log` for logging. This is convenient in case of debugging in several places at the same time: local luatest = require('luatest') luatest.log('outside') g.test_foo = function() luatest.log('inside') g.server:exec(function() luatest.log('hi!') end) end I> outside I> inside I> hi! The pretty conversion of arguments of any type will be performed automatically: luatest.log('My structure is %s', {a = 1, b = 2, c = {cc = 1}}) I> My structure is {a = 1, b = 2, c = {cc = 1}} Closes #326
- Loading branch information
Showing
4 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters