From 1e011c93946be639f86219a390476f6efcfb6ed1 Mon Sep 17 00:00:00 2001 From: Seb Maynard Date: Thu, 5 Feb 2015 15:01:33 +0000 Subject: [PATCH 1/2] Bump lager version to 2.1.0 --- rebar.config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rebar.config b/rebar.config index 0b722b7..97d3759 100644 --- a/rebar.config +++ b/rebar.config @@ -30,6 +30,6 @@ {deps, [ % let it always be the first - {lager, "2.0.1", - {git, "git://github.com/basho/lager.git", {tag, "2.0.1"}}} + {lager, "2.1.0", + {git, "git://github.com/basho/lager.git", {tag, "2.1.0"}}} ]}. From a237f40778635287ed685d81245be58b74a1b12f Mon Sep 17 00:00:00 2001 From: Seb Maynard Date: Fri, 27 Jan 2017 12:53:11 +0000 Subject: [PATCH 2/2] Replace lager with error_logger --- rebar.config | 10 +--------- src/dht_ring.erl | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/rebar.config b/rebar.config index 97d3759..deec014 100644 --- a/rebar.config +++ b/rebar.config @@ -22,14 +22,6 @@ strict_validation, warn_export_vars, warn_exported_vars, - warn_untyped_record, - - {parse_transform, lager_transform}, - {lager_truncation_size, 4096} + warn_untyped_record ]}. -{deps, [ - % let it always be the first - {lager, "2.1.0", - {git, "git://github.com/basho/lager.git", {tag, "2.1.0"}}} -]}. diff --git a/src/dht_ring.erl b/src/dht_ring.erl index 6b76a0c..204a8f5 100644 --- a/src/dht_ring.erl +++ b/src/dht_ring.erl @@ -168,7 +168,7 @@ init(Peers) -> ] ), Ring = array:from_list(assemble_ring([], lists:reverse(RawRing), [], length(Peers))), - lager:info("Created a ring with ~b points in it.", [array:sparse_size(Ring)]), + error_logger:info_msg("Created a ring with ~b points in it.", [array:sparse_size(Ring)]), {ok, #state{ ring = Ring, nodes = Peers }}. terminate(_Reason, _State) ->