mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 16:45:29 +00:00
d284dcfc22
Intercepts provide the ability to easily and efficiently intercept function calls. Giving the ability to change the code being executed as well as affect local and global state.
4 lines
167 B
Erlang
4 lines
167 B
Erlang
-define(I_TAG(S), "INTERCEPT: " ++ S).
|
|
-define(I_INFO(Msg), error_logger:info_msg(?I_TAG(Msg))).
|
|
-define(I_INFO(Msg, Args), error_logger:info_msg(?I_TAG(Msg), Args)).
|