Skip to content

Instantly share code, notes, and snippets.

@alexmoore
Created May 6, 2014 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexmoore/a9d5ca6c24362ffba3e9 to your computer and use it in GitHub Desktop.
Save alexmoore/a9d5ca6c24362ffba3e9 to your computer and use it in GitHub Desktop.
Set Debug / Info Log Levels Riak-CS
SetDebug = fun() -> {node(), lager:set_loglevel(lager_file_backend, "/var/log/riak-cs/console.log", debug)} end.
SetInfo = fun() -> {node(), lager:set_loglevel(lager_file_backend, "/var/log/riak-cs/console.log", info)} end.
rp(rpc:multicall(erlang, apply, [SetInfo,[]])).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment