mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-09-23 14:27:56 +03:00
Changed unnecessary server output to 'debug' log level
This commit is contained in:
parent
923d0497e6
commit
76aa409f89
@ -156,7 +156,7 @@ public class NetServer implements ApplicationListener{
|
||||
return;
|
||||
}
|
||||
|
||||
Log.info("Recieved connect packet for player '{0}' / UUID {1} / IP {2}", packet.name, uuid, connection.address);
|
||||
Log.debug("Recieved connect packet for player '{0}' / UUID {1} / IP {2}", packet.name, uuid, connection.address);
|
||||
|
||||
String ip = Net.getConnection(id).address;
|
||||
|
||||
@ -234,7 +234,7 @@ public class NetServer implements ApplicationListener{
|
||||
data.stream = new ByteArrayInputStream(stream.toByteArray());
|
||||
Net.sendStream(clientID, data);
|
||||
|
||||
Log.info("Packed {0} compressed bytes of world data.", stream.size());
|
||||
Log.debug("Packed {0} compressed bytes of world data.", stream.size());
|
||||
}
|
||||
|
||||
public static void onDisconnect(Player player){
|
||||
@ -340,13 +340,13 @@ public class NetServer implements ApplicationListener{
|
||||
public static void onAdminRequest(Player player, Player other, AdminAction action){
|
||||
|
||||
if(!player.isAdmin){
|
||||
Log.err("ACCESS DENIED: Player {0} / {1} attempted to perform admin action without proper security access.",
|
||||
Log.warn("ACCESS DENIED: Player {0} / {1} attempted to perform admin action without proper security access.",
|
||||
player.name, player.con.address);
|
||||
return;
|
||||
}
|
||||
|
||||
if(other == null || ((other.isAdmin && !player.isLocal) && other != player)){
|
||||
Log.err("{0} attempted to perform admin action on nonexistant or admin player.", player.name);
|
||||
Log.warn("{0} attempted to perform admin action on nonexistant or admin player.", player.name);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -61,7 +61,7 @@ public class KryoServer implements ServerProvider{
|
||||
c.id = kn.id;
|
||||
c.addressTCP = ip;
|
||||
|
||||
Log.info("&bRecieved connection: {0}", c.addressTCP);
|
||||
Log.debug("&bRecieved connection: {0}", c.addressTCP);
|
||||
|
||||
connections.add(kn);
|
||||
Core.app.post(() -> Net.handleServerReceived(kn.id, c));
|
||||
@ -90,7 +90,7 @@ public class KryoServer implements ServerProvider{
|
||||
try{
|
||||
Net.handleServerReceived(k.id, object);
|
||||
}catch(ValidateException e){
|
||||
Log.err("Validate failed: {0} ({1})", e.player.name, e.getMessage());
|
||||
Log.err("Validation failed: {0} ({1})", e.player.name, e.getMessage());
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
@ -62,6 +62,11 @@ public class ServerControl implements ApplicationListener{
|
||||
Log.setLogger(new LogHandler(){
|
||||
DateTimeFormatter dateTime = DateTimeFormatter.ofPattern("MM-dd-yyyy | HH:mm:ss");
|
||||
|
||||
@Override
|
||||
public void debug(String text, Object... args){
|
||||
print("&lc&fb" + "[DEBUG] " + text, args);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void info(String text, Object... args){
|
||||
print("&lg&fb" + "[INFO] " + text, args);
|
||||
|
Loading…
Reference in New Issue
Block a user