Commit Graph

11 Commits

Author SHA1 Message Date
Sean Cribbs
a375005ca7 Fix test log formatting.
riak_test_lager_backend was supporting Lager 2.0-style messages by
manually extracting and then reconstituting the pieces. It's much
easier just to pass it to lager_default_formatter, and then the format
is more declarative. Since we also have the opportunity to inject
newlines in each line as it is produced, we can skip the fold that
joined the log lines and simply convert it to a binary with the
unicode module.
2013-10-03 21:45:09 -05:00
Andrew Thompson
89d1979c60 Upgrade to lager 2.0 and remove some lager 2.0 API abuse
Riak, EE and CS all use lager 2.0 now, riak_test should too.
2013-07-18 16:08:33 -04:00
Jordan West
8c377bb852 update riak_test_lager_backend for new msg tuple 2013-06-03 23:44:49 -07:00
Jordan West
b11db0d74e verify_busy_dist_port: remove use of grep via os:cmd, timer:sleep
* install a riak_sysmon custom handler and monitor for the busy_dist_port event on the riak node. when the handler detects the event it notifies the test process
* install riak_test_lager_backend on the riak node to capture log messages in memory. When the test process is notified that the busy dist port event fired on the riak node it retrieves the logs from the backend using the added get_logs/0 function and then checks for the busy_dist_port message
* there is a subtle race I *think*, that should rarely come up in practice, between lager and the riak_sysmon event handlers with this method of implementing the test that may require use of some form of retry/max retry still
2012-11-30 17:08:29 -08:00
Joe DeVivo
5ee99bbbab Added source headers 2012-10-10 15:14:06 -07:00
Andrew Thompson
abad68fde4 Use include_lib correctly 2012-08-30 16:58:49 -04:00
Joe DeVivo
70bf8c99c1 Converted include of lager.hrl to include_lib 2012-08-30 15:41:00 -04:00
Joe DeVivo
e7a0b32ba7 Fixed dializer errors 2012-08-27 11:27:47 -07:00
Joe DeVivo
c05428cf7e Added @docs and -specs 2012-08-27 10:50:18 -07:00
Joe DeVivo
4356aea9a6 Added eunit test to riak_test_lager_backend 2012-08-23 10:46:17 -07:00
Joe DeVivo
c5a774ffaa Added a lager backend for future reporting 2012-08-23 09:45:41 -07:00