From bd0eaa423418ac1c23f423f01c6d062e40a79ba0 Mon Sep 17 00:00:00 2001 From: Amos Ng Date: Tue, 16 Jun 2020 02:57:18 +0800 Subject: [PATCH] Added logging of `url` and `compromised` parameters from `/ping` --- CHANGELOG.md | 2 ++ src/main/java/mdnet/base/ServerSettings.java | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cb0733..c1a6e92 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added +- [2020-06-15] Added logging of backend assigned URL to logs by [@lflare]. +- [2020-06-15] Added logging of `compromised` softban to logs by [@lflare]. ### Changed diff --git a/src/main/java/mdnet/base/ServerSettings.java b/src/main/java/mdnet/base/ServerSettings.java index 6891652..00a292a 100644 --- a/src/main/java/mdnet/base/ServerSettings.java +++ b/src/main/java/mdnet/base/ServerSettings.java @@ -10,11 +10,15 @@ public final class ServerSettings { private final TlsCert tls; @SerializedName("latest_build") private final int latestBuild; + private final String url; + private final boolean compromised; - public ServerSettings(String imageServer, TlsCert tls, int latestBuild) { + public ServerSettings(String imageServer, TlsCert tls, int latestBuild, String url, boolean compromised) { this.imageServer = Objects.requireNonNull(imageServer); this.tls = tls; this.latestBuild = latestBuild; + this.url = url; + this.compromised = compromised; } public String getImageServer() { @@ -32,7 +36,7 @@ public final class ServerSettings { @Override public String toString() { return "ServerSettings{" + "imageServer='" + imageServer + '\'' + ", tls=" + tls + ", latestBuild=" - + latestBuild + '}'; + + latestBuild + ", url='" + url + "', compromised=" + compromised + '}'; } @Override