summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http/HttpRequestUtil.java
blob: 46359572e63734f97cb5b0e9fba059465291112e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.mapbox.mapboxsdk.http;

/**
 * Utility class for setting HttpRequest configurations
 */
public class HttpRequestUtil {

  /**
   * Set the log state of HttpRequest.
   * <p>
   * This configuration will outlast the lifecycle of the Map.
   * </p>
   *
   * @param enabled True will enable logging, false will disable
   */
  public static void setLogEnabled(boolean enabled) {
    HttpRequest.enableLog(enabled);
  }
}