Only log when there is no internet connection