diff --git a/mica-http/src/main/java/net/dreamlu/mica/http/HttpConsoleLogger.java b/mica-http/src/main/java/net/dreamlu/mica/http/HttpConsoleLogger.java index 3601aa51f..877def546 100644 --- a/mica-http/src/main/java/net/dreamlu/mica/http/HttpConsoleLogger.java +++ b/mica-http/src/main/java/net/dreamlu/mica/http/HttpConsoleLogger.java @@ -33,8 +33,7 @@ public enum HttpConsoleLogger implements HttpLoggingInterceptor.Logger { public void log(@Nonnull String message) { // 统一添加前缀,方便在茫茫日志中查看 - System.out.print("ConsoleLogger: "); - System.out.println(message); + System.out.printf("HttpLogger: %s\n", message); } } diff --git a/mica-http/src/main/java/net/dreamlu/mica/http/HttpRequest.java b/mica-http/src/main/java/net/dreamlu/mica/http/HttpRequest.java index a2010c03e..4b0fbd31f 100644 --- a/mica-http/src/main/java/net/dreamlu/mica/http/HttpRequest.java +++ b/mica-http/src/main/java/net/dreamlu/mica/http/HttpRequest.java @@ -57,7 +57,7 @@ * @author L.cm */ public class HttpRequest { - private static final String DEFAULT_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"; + private static final String DEFAULT_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0"; private static final MediaType APPLICATION_JSON = MediaType.get("application/json"); private static volatile OkHttpClient httpClient = new OkHttpClient(); @Nullable