Also added a flag for https to the debug logs