summaryrefslogtreecommitdiff
path: root/src/vector_clock.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/vector_clock.erl')
-rw-r--r--src/vector_clock.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/vector_clock.erl b/src/vector_clock.erl
index 0a89d41e..740d1520 100644
--- a/src/vector_clock.erl
+++ b/src/vector_clock.erl
@@ -31,10 +31,11 @@ resolve({ClockA, ValuesA}, {ClockB, ValuesB}) ->
greater -> {ClockA, ValuesA};
equal -> {ClockA, ValuesA};
concurrent ->
- io:format("~nConcurrent Clocks~n"
- "ClockA : ~p~nClockB : ~p~n"
- "ValuesA: ~p~nValuesB: ~p~n"
- , [ClockA, ClockB, ValuesA, ValuesB]),
+ showroom_log:message(info,
+ "~nConcurrent Clocks~n"
+ "ClockA : ~p~nClockB : ~p~n"
+ "ValuesA: ~p~nValuesB: ~p~n"
+ , [ClockA, ClockB, ValuesA, ValuesB]),
{merge(ClockA,ClockB), ValuesA ++ ValuesB}
end;
resolve(not_found, {Clock, Values}) ->