add debug logging for metered networks