andrew at hijacked.us
Sun Aug 28 18:52:04 EDT 2011
On Sun, Aug 28, 2011 at 10:56:58AM -0700, Bryan Hughes wrote:
> Hi Everyone,
> Wasnt sure where to post this question, so sorry if this is the wrong place.
> We have Riak as our persistence and have decided to switch to Lager
> as our logging framework for the entire system - good stuff!!! So
> far things have been going well. Unfortunately I am encountering
> unexpected results from the same code running on Erlang R14B02
> (erts-5.8.3) on a MacBook Pro and a 32bit Ubuntu 11 instance. Both
> Erlangs were downloaded from source and compiled with the same
> The issue is with the formatted results of a float using ~w.
> On the Linux instance:
> (herd at 127.0.0.1)4> lager:log(info, self(), "~w", [1.0]).
> 22:33:32.329 [info] 1.00000000000000000000e+00
> On the Mac:
> (herd at 127.0.0.1)2> lager:log(info, self(), "~w", [1.0]).
> 22:43:22.208 [info] 1.0
> ~p formats correctly, but it also prettifies the output which is not
> desirable for logs that may be parsed later.
Interestingly, I see the same result on both my 64 bit macbook and my 64
bit linux installs. I get the
18:49:23.358 [info] 1.00000000000000000000e+00
I will look into the issue. Are the git commit ids for lager the same on
More information about the riak-users