Added logging of url
and compromised
parameters from /ping
This commit is contained in:
parent
d58f4b8634
commit
bd0eaa4234
|
@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Added
|
### 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
|
### Changed
|
||||||
|
|
||||||
|
|
|
@ -10,11 +10,15 @@ public final class ServerSettings {
|
||||||
private final TlsCert tls;
|
private final TlsCert tls;
|
||||||
@SerializedName("latest_build")
|
@SerializedName("latest_build")
|
||||||
private final int latestBuild;
|
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.imageServer = Objects.requireNonNull(imageServer);
|
||||||
this.tls = tls;
|
this.tls = tls;
|
||||||
this.latestBuild = latestBuild;
|
this.latestBuild = latestBuild;
|
||||||
|
this.url = url;
|
||||||
|
this.compromised = compromised;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getImageServer() {
|
public String getImageServer() {
|
||||||
|
@ -32,7 +36,7 @@ public final class ServerSettings {
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "ServerSettings{" + "imageServer='" + imageServer + '\'' + ", tls=" + tls + ", latestBuild="
|
return "ServerSettings{" + "imageServer='" + imageServer + '\'' + ", tls=" + tls + ", latestBuild="
|
||||||
+ latestBuild + '}';
|
+ latestBuild + ", url='" + url + "', compromised=" + compromised + '}';
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue