anchor.diff:                              gen_tcp:send(Socket, YouAre),
                               Socket;
                           {error, Reason} ->
  -                            log:log(error,"[ CC ] reconnect to ~p because socket is ~p",
  +                            log:log(error,"[ CC ] reconnect to ~.0p because socket is ~.0p",
                                       [Address, Reason]),
                               gen_tcp:close(Socket),
                               new_connection(Address, Port, MyPort)
                       end;
                   {error, Reason} ->
  -                    log:log(error,"[ CC ] reconnect to ~p because socket is ~p",
  +                    log:log(error,"[ CC ] reconnect to ~.0p because socket is ~.0p",
                               [Address, Reason]),
                       gen_tcp:close(Socket),
                       new_connection(Address, Port, MyPort)
               end;
           {error, Reason} ->
  -            log:log(info,"[ CC ] couldn't connect to ~p:~p (~p)",
  +            log:log(info,"[ CC ] couldn't connect to ~.0p:~.0p (~.0p)",
                       [Address, Port, Reason]),
               fail
       end.
  
positive.code:              end,
      case Socket of
          fail ->
              log:log(warn, "~p Connection failed, drop message ~p",
                      [pid_groups:my_pidname(), Message]),
              %%reconnect
              set_socket(State, notconnected);
  
negative.code:                 gen_tcp:close(Socket),
                  notconnected;
              {error, timeout} ->
                  log:log(error,"[ CC ] couldn't send to ~.0p:~.0p (~.0p). retrying.",
                          [Address, Port, timeout]),
                  send({Address, Port, Socket}, Pid, Message);
              {error, Reason} ->
                  log:log(error,"[ CC ] couldn't send to ~.0p:~.0p (~.0p). closing connection",
                          [Address, Port, Reason]),
                  gen_tcp:close(Socket),
                  notconnected
  