Better logging with debug messages for network operations