Switch to logger (#442)
* Switch to logger Use logger rather than io:format when logging. The ct tests have besn switched to log to file, testutil/init_per_suite/1 may offer useful guidance on configuring logger with leveled. As all logs are produced by the leveled_log module, the MFA metadata is uninteresting for log outputs, but can be used for explicit filter controls for leveled logs. * iolist_to_binary not unicode_binary() logger filters will be error and be removed if the format line is a binary(). Must be either a charlist() or a unicode_binary() - so iolist_to_binary() can't be used * Add metadata for filter * Update test/end_to_end/tictac_SUITE.erl Co-authored-by: Thomas Arts <thomas.arts@quviq.com> --------- Co-authored-by: Thomas Arts <thomas.arts@quviq.com>
This commit is contained in:
parent
5db277b82d
commit
54e3096020
27 changed files with 492 additions and 410 deletions
|
@ -1,7 +1,9 @@
|
|||
-module(perf_SUITE).
|
||||
-include("../include/leveled.hrl").
|
||||
|
||||
-include("leveled.hrl").
|
||||
|
||||
-define(INFO, info).
|
||||
-export([all/0, suite/0]).
|
||||
-export([all/0, suite/0, init_per_suite/1, end_per_suite/1]).
|
||||
-export([
|
||||
riak_ctperf/1, riak_fullperf/1, riak_profileperf/1, riak_miniperf/1
|
||||
]).
|
||||
|
@ -25,6 +27,13 @@ all() -> [?performance].
|
|||
|
||||
suite() -> [{timetrap, {hours, 16}}].
|
||||
|
||||
init_per_suite(Config) ->
|
||||
testutil:init_per_suite([{suite, "perf"}|Config]),
|
||||
Config.
|
||||
|
||||
end_per_suite(Config) ->
|
||||
testutil:end_per_suite(Config).
|
||||
|
||||
riak_fullperf(_Config) ->
|
||||
riak_fullperf(2048, zstd, as_store).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue