Move p2p logging to a separate file