Improving logging output
Print private key too