log last event in gen_server state, catch rebar calls