Made PONG logging and heartbeat delta only get computed if the current log level is debug.