Initial logging configuration, fix null on SSL error