improve gateway logs