fix all logger names
This commit is contained in:
parent
bb64949927
commit
63c2a18c3a
38 changed files with 154 additions and 155 deletions
|
@ -514,7 +514,7 @@ public class Client implements IThreadListener {
|
|||
|
||||
public void connect(String address, int port, String user, String pass, String access) {
|
||||
this.displayGuiScreen(GuiLoading.makeWaitTask("Verbinde zu " + (address == null ? "localhost" : address) + ":" + port + " ..."));
|
||||
Log.JNI.info("Verbinde zu " + (address == null ? "localhost" : address) + ":" + port);
|
||||
Log.NETWORK.info("Verbinde zu " + (address == null ? "localhost" : address) + ":" + port);
|
||||
final NetConnection connection;
|
||||
try
|
||||
{
|
||||
|
@ -528,13 +528,13 @@ public class Client implements IThreadListener {
|
|||
}
|
||||
catch (UnknownHostException u)
|
||||
{
|
||||
Log.JNI.error(u, "Konnte nicht zu Server verbinden");
|
||||
Log.NETWORK.error(u, "Konnte nicht zu Server verbinden");
|
||||
this.disconnected("Unbekannter Hostname: " + (address == null ? "localhost" : address));
|
||||
return;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.JNI.error(e, "Konnte nicht zu Server verbinden");
|
||||
Log.NETWORK.error(e, "Konnte nicht zu Server verbinden");
|
||||
this.disconnected(e.toString());
|
||||
return;
|
||||
}
|
||||
|
@ -620,10 +620,10 @@ public class Client implements IThreadListener {
|
|||
}
|
||||
catch(ExecutionException e1) {
|
||||
if(!(e1.getCause() instanceof ThreadQuickExitException))
|
||||
Log.JNI.error(e1, "Fehler beim Ausführen von Render-Task " + task);
|
||||
Log.SYSTEM.error(e1, "Fehler beim Ausführen von Render-Task " + task);
|
||||
}
|
||||
catch(InterruptedException e2) {
|
||||
Log.JNI.error(e2, "Fehler beim Ausführen von Render-Task " + task);
|
||||
Log.SYSTEM.error(e2, "Fehler beim Ausführen von Render-Task " + task);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1294,7 +1294,7 @@ public class Client implements IThreadListener {
|
|||
if (this.pointed == null)
|
||||
{
|
||||
this.player.swingItem();
|
||||
Log.JNI.warn("Null zurückgegeben als 'hitResult', das sollte niemals passieren!");
|
||||
Log.TICK.warn("Null zurückgegeben als 'hitResult', das sollte niemals passieren!");
|
||||
this.leftClickCounter = 10;
|
||||
}
|
||||
else
|
||||
|
@ -1348,7 +1348,7 @@ public class Client implements IThreadListener {
|
|||
|
||||
if (this.pointed == null)
|
||||
{
|
||||
Log.JNI.warn("Null zurückgegeben als 'hitResult', das sollte niemals passieren!");
|
||||
Log.TICK.warn("Null zurückgegeben als 'hitResult', das sollte niemals passieren!");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2270,7 +2270,7 @@ public class Client implements IThreadListener {
|
|||
// }
|
||||
|
||||
public void disconnected(String msg) {
|
||||
Log.SYSTEM.info("Getrennt: %s", msg);
|
||||
Log.NETWORK.info("Getrennt: %s", msg);
|
||||
this.unload(true);
|
||||
this.displayGuiScreen(new GuiInfo("Von Server getrennt", TextColor.RED + "Verbindung zum Server wurde getrennt\n\n" + TextColor.RESET + msg));
|
||||
}
|
||||
|
@ -2888,7 +2888,7 @@ public class Client implements IThreadListener {
|
|||
data = FileUtils.read(config);
|
||||
}
|
||||
catch(IOException e) {
|
||||
Log.CONSOLE.error(e, "Konnte Konfigurationsdatei nicht laden");
|
||||
Log.IO.error(e, "Konnte Konfigurationsdatei nicht laden");
|
||||
return;
|
||||
}
|
||||
if(data == null)
|
||||
|
@ -2925,7 +2925,7 @@ public class Client implements IThreadListener {
|
|||
FileUtils.write(config, sb.toString());
|
||||
}
|
||||
catch(IOException e) {
|
||||
Log.CONSOLE.error(e, "Konnte Konfigurationsdatei nicht speichern");
|
||||
Log.IO.error(e, "Konnte Konfigurationsdatei nicht speichern");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -320,9 +320,9 @@ public class GuiChar extends GuiList<GuiChar.SkinEntry>
|
|||
}
|
||||
catch(Exception e) {
|
||||
if(e instanceof FileNotFoundException)
|
||||
Log.JNI.warn("Textur ist nicht zum Kopieren vorhanden: " + EntityNPC.getSkinTexture(loc));
|
||||
Log.IO.warn("Textur ist nicht zum Kopieren vorhanden: " + EntityNPC.getSkinTexture(loc));
|
||||
else
|
||||
Log.JNI.error(e, "Konnte Textur nicht kopieren");
|
||||
Log.IO.error(e, "Konnte Textur nicht kopieren");
|
||||
}
|
||||
finally {
|
||||
if(in != null) {
|
||||
|
|
|
@ -1855,7 +1855,7 @@ public class ClientPlayer extends NetHandler implements IClientPlayer
|
|||
}
|
||||
catch (Throwable var17)
|
||||
{
|
||||
Log.JNI.warn("Konnte Partikel-Effekt " + packetIn.getParticleType() + " nicht erzeugen");
|
||||
Log.RENDER.warn("Konnte Partikel-Effekt " + packetIn.getParticleType() + " nicht erzeugen");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -1876,7 +1876,7 @@ public class ClientPlayer extends NetHandler implements IClientPlayer
|
|||
}
|
||||
catch (Throwable var16)
|
||||
{
|
||||
Log.JNI.warn("Konnte Partikel-Effekt " + packetIn.getParticleType() + " nicht erzeugen");
|
||||
Log.RENDER.warn("Konnte Partikel-Effekt " + packetIn.getParticleType() + " nicht erzeugen");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1968,7 +1968,7 @@ public class ClientPlayer extends NetHandler implements IClientPlayer
|
|||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
Log.JNI.error((Throwable)exception, (String)"Konnte Handel nicht laden");
|
||||
Log.TICK.error((Throwable)exception, (String)"Konnte Handel nicht laden");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ public class RenderBuffer
|
|||
int i = this.byteBuffer.capacity();
|
||||
int j = i % 2097152;
|
||||
int k = j + (((this.rawIntBuffer.position() + p_181670_1_) * 4 - j) / 2097152 + 1) * 2097152;
|
||||
Log.JNI.warn("Musste Puffer vergrößern: Alte Größe " + i + " Bytes, neue Größe " + k + " Bytes.");
|
||||
Log.RENDER.warn("Musste Puffer vergrößern: Alte Größe " + i + " Bytes, neue Größe " + k + " Bytes.");
|
||||
int l = this.rawIntBuffer.position();
|
||||
ByteBuffer bytebuffer = ByteBuffer.allocateDirect(k).order(ByteOrder.nativeOrder());
|
||||
this.byteBuffer.position(0);
|
||||
|
|
|
@ -53,7 +53,7 @@ public class VertexFormat
|
|||
{
|
||||
if (element.isPositionElement() && this.hasPosition())
|
||||
{
|
||||
Log.JNI.warn("VertexFormat-Fehler: Versuche eine Position vom Typ VertexFormatElement hinzuzufügen, während eine bereits existiert, ignoriere.");
|
||||
Log.RENDER.warn("VertexFormat-Fehler: Versuche eine Position vom Typ VertexFormatElement hinzuzufügen, während eine bereits existiert, ignoriere.");
|
||||
return this;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -15,7 +15,7 @@ public class VertexFormatElement
|
|||
{
|
||||
if (!this.isValid(indexIn, usageIn))
|
||||
{
|
||||
Log.JNI.warn("Mehrere Vertex-Elemente des gleichen Typs außer UVs sind nicht unterstützt. Erzwinge Typ UV.");
|
||||
Log.RENDER.warn("Mehrere Vertex-Elemente des gleichen Typs außer UVs sind nicht unterstützt. Erzwinge Typ UV.");
|
||||
this.usage = VertexFormatElement.EnumUsage.UV;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -26,13 +26,13 @@ public abstract class ModelGenerator {
|
|||
}
|
||||
catch(Throwable e) {
|
||||
if(e instanceof FileNotFoundException)
|
||||
Log.JNI.warn("Textur ist nicht zum Zusammenstellen vorhanden: " + textureLocation);
|
||||
Log.IO.warn("Textur ist nicht zum Zusammenstellen vorhanden: " + textureLocation);
|
||||
else
|
||||
Log.JNI.error(e, "Konnte Textur '" + textureLocation + "' nicht zum Zusammenstellen laden");
|
||||
Log.IO.error(e, "Konnte Textur '" + textureLocation + "' nicht zum Zusammenstellen laden");
|
||||
return Lists.<ModelBox>newArrayList();
|
||||
}
|
||||
if(img.length < tw * th) {
|
||||
Log.JNI.warn("Konnte Textur '" + textureLocation.toString() + "' nicht zum Zusammenstellen laden weil sie zu klein ist " +
|
||||
Log.IO.warn("Konnte Textur '" + textureLocation.toString() + "' nicht zum Zusammenstellen laden weil sie zu klein ist " +
|
||||
"(benötige " + (tw*th) + " [" + tw + "x" + th + "], habe " + img.length + ")");
|
||||
return Lists.<ModelBox>newArrayList();
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ public class ChunkRenderWorker implements Runnable
|
|||
{
|
||||
if (!generator.isFinished())
|
||||
{
|
||||
Log.JNI.warn("Chunk-Rendering-Aufgabe war " + generator.getStatus() + " wenn PENDING erwartet war; ignoriere Aufgabe");
|
||||
Log.RENDER.warn("Chunk-Rendering-Aufgabe war " + generator.getStatus() + " wenn PENDING erwartet war; ignoriere Aufgabe");
|
||||
}
|
||||
|
||||
return;
|
||||
|
@ -106,7 +106,7 @@ public class ChunkRenderWorker implements Runnable
|
|||
{
|
||||
if (!generator.isFinished())
|
||||
{
|
||||
Log.JNI.warn("Chunk-Rendering-Aufgabe war " + generator.getStatus() + " wenn COMPILING erwartet war; breche Aufgabe ab");
|
||||
Log.RENDER.warn("Chunk-Rendering-Aufgabe war " + generator.getStatus() + " wenn COMPILING erwartet war; breche Aufgabe ab");
|
||||
}
|
||||
|
||||
this.freeRenderBuilder(generator);
|
||||
|
@ -164,7 +164,7 @@ public class ChunkRenderWorker implements Runnable
|
|||
|
||||
if (!generator.isFinished())
|
||||
{
|
||||
Log.JNI.warn("Chunk-Rendering-Aufgabe war " + generator.getStatus() + " wenn UPLOADING erwartet war; breche Aufgabe ab");
|
||||
Log.RENDER.warn("Chunk-Rendering-Aufgabe war " + generator.getStatus() + " wenn UPLOADING erwartet war; breche Aufgabe ab");
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
@ -182,7 +182,7 @@ public class ChunkRenderWorker implements Runnable
|
|||
|
||||
if (!(p_onFailure_1_ instanceof CancellationException) && !(p_onFailure_1_ instanceof InterruptedException))
|
||||
{
|
||||
Log.JNI.error(p_onFailure_1_, "Fehler beim Rendern des Chunks");
|
||||
Log.RENDER.error(p_onFailure_1_, "Fehler beim Rendern des Chunks");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -182,7 +182,7 @@ public abstract class RendererLivingEntity<T extends EntityLiving> extends Rende
|
|||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
Log.JNI.error((Throwable)exception, (String)"Konnte Objekt nicht rendern");
|
||||
Log.RENDER.error((Throwable)exception, (String)"Konnte Objekt nicht rendern");
|
||||
}
|
||||
|
||||
GlState.setActiveTexture(GL13.GL_TEXTURE1);
|
||||
|
|
|
@ -46,17 +46,17 @@ public abstract class EntityTexManager
|
|||
}
|
||||
catch(IOException e) {
|
||||
if(e instanceof FileNotFoundException)
|
||||
Log.JNI.warn("Textur ist nicht vorhanden: " + loc);
|
||||
Log.IO.warn("Textur ist nicht vorhanden: " + loc);
|
||||
else
|
||||
Log.JNI.error(e, "Konnte Textur nicht laden: " + loc);
|
||||
Log.IO.error(e, "Konnte Textur nicht laden: " + loc);
|
||||
try {
|
||||
image = TextureUtil.readImage(FileUtils.getResource(getDefault(entry.getValue())));
|
||||
}
|
||||
catch(IOException e2) {
|
||||
if(e2 instanceof FileNotFoundException)
|
||||
Log.JNI.warn("Textur ist nicht vorhanden: " + loc);
|
||||
Log.IO.warn("Textur ist nicht vorhanden: " + loc);
|
||||
else
|
||||
Log.JNI.error(e2, "Konnte Textur nicht laden: " + loc);
|
||||
Log.IO.error(e2, "Konnte Textur nicht laden: " + loc);
|
||||
image = new BufferedImage(64, 64, BufferedImage.TYPE_INT_ARGB);
|
||||
Graphics2D g = image.createGraphics();
|
||||
g.setColor(Color.BLACK);
|
||||
|
@ -98,9 +98,9 @@ public abstract class EntityTexManager
|
|||
}
|
||||
catch(IOException e) {
|
||||
if(e instanceof FileNotFoundException)
|
||||
Log.JNI.warn("Textur ist nicht vorhanden: " + loc);
|
||||
Log.IO.warn("Textur ist nicht vorhanden: " + loc);
|
||||
else
|
||||
Log.JNI.error(e, "Konnte Textur nicht laden: " + loc);
|
||||
Log.IO.error(e, "Konnte Textur nicht laden: " + loc);
|
||||
image = new BufferedImage(64, 32, BufferedImage.TYPE_INT_ARGB);
|
||||
Graphics2D g = image.createGraphics();
|
||||
g.setColor(Color.BLACK);
|
||||
|
|
|
@ -92,7 +92,7 @@ public class LayeredColorMaskTexture extends Texture
|
|||
}
|
||||
catch (IOException ioexception)
|
||||
{
|
||||
Log.JNI.error((Throwable)ioexception, (String)"Konnte Bild mit mehreren Schichten nicht laden");
|
||||
Log.IO.error((Throwable)ioexception, (String)"Konnte Bild mit mehreren Schichten nicht laden");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ public class LayeredTexture extends Texture
|
|||
}
|
||||
catch (IOException ioexception)
|
||||
{
|
||||
Log.JNI.error((Throwable)ioexception, (String)"Konnte Bild mit mehreren Schichten nicht laden");
|
||||
Log.IO.error((Throwable)ioexception, (String)"Konnte Bild mit mehreren Schichten nicht laden");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -28,9 +28,9 @@ public class TextureManager {
|
|||
}
|
||||
catch(IOException e) {
|
||||
if(e instanceof FileNotFoundException)
|
||||
Log.JNI.warn("Textur ist nicht vorhanden: " + res);
|
||||
Log.IO.warn("Textur ist nicht vorhanden: " + res);
|
||||
else
|
||||
Log.JNI.error(e, "Konnte Textur nicht laden: " + res);
|
||||
Log.IO.error(e, "Konnte Textur nicht laden: " + res);
|
||||
tex = TextureUtil.MISSING;
|
||||
this.textures.put(res, tex);
|
||||
flag = false;
|
||||
|
|
|
@ -115,17 +115,17 @@ public class TextureMap extends Texture
|
|||
}
|
||||
catch (RuntimeException runtimeexception)
|
||||
{
|
||||
Log.JNI.error((Throwable)runtimeexception, (String)("Konnte Metadaten von " + name + " nicht laden"));
|
||||
Log.IO.error((Throwable)runtimeexception, (String)("Konnte Metadaten von " + name + " nicht laden"));
|
||||
continue;
|
||||
}
|
||||
catch (FileNotFoundException f)
|
||||
{
|
||||
Log.JNI.warn("Textur ist nicht vorhanden: " + name);
|
||||
Log.IO.warn("Textur ist nicht vorhanden: " + name);
|
||||
continue;
|
||||
}
|
||||
catch (IOException ioexception1)
|
||||
{
|
||||
Log.JNI.error((Throwable)ioexception1, (String)("Benutze Ersatztextur, konnte " + name + " nicht laden"));
|
||||
Log.IO.error((Throwable)ioexception1, (String)("Benutze Ersatztextur, konnte " + name + " nicht laden"));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -167,7 +167,7 @@ public class TextureMap extends Texture
|
|||
throw stitcherexception;
|
||||
}
|
||||
|
||||
Log.JNI.info("Textur-Atlas in Größe " + stitcher.getCurrentWidth() + "x" + stitcher.getCurrentHeight() + " erstellt");
|
||||
Log.RENDER.info("Textur-Atlas in Größe " + stitcher.getCurrentWidth() + "x" + stitcher.getCurrentHeight() + " erstellt");
|
||||
TextureUtil.allocateTexture(this.getGlTextureId(), stitcher.getCurrentWidth(), stitcher.getCurrentHeight());
|
||||
Map<String, TextureAtlasSprite> map = Maps.<String, TextureAtlasSprite>newHashMap(this.mapRegisteredSprites);
|
||||
|
||||
|
|
|
@ -171,20 +171,20 @@ public abstract class SkinConverter {
|
|||
img = ImageIO.read(source);
|
||||
}
|
||||
catch(IOException e) {
|
||||
Log.JNI.error(e, "Konnte kein Bild von " + source + " laden");
|
||||
Log.IO.error(e, "Konnte kein Bild von " + source + " laden");
|
||||
return false;
|
||||
}
|
||||
if(img == null) {
|
||||
Log.JNI.warn("Konnte kein Bild von " + source + " laden");
|
||||
Log.IO.warn("Konnte kein Bild von " + source + " laden");
|
||||
return false;
|
||||
}
|
||||
Log.JNI.info("Bild von " + source + " geladen");
|
||||
Log.IO.info("Bild von " + source + " geladen");
|
||||
if(img.getWidth() == 64 && img.getHeight() == 32) {
|
||||
img = convertSkin(img);
|
||||
Log.JNI.info("Skin " + source + " konvertiert");
|
||||
Log.IO.info("Skin " + source + " konvertiert");
|
||||
}
|
||||
else if(img.getWidth() != 64 || img.getHeight() != 64) {
|
||||
Log.JNI.warn("Falsche Bildgröße von " + source + ": " + img.getWidth() + "x" + img.getHeight());
|
||||
Log.IO.warn("Falsche Bildgröße von " + source + ": " + img.getWidth() + "x" + img.getHeight());
|
||||
return false;
|
||||
}
|
||||
String name = source.getName();
|
||||
|
@ -195,7 +195,7 @@ public abstract class SkinConverter {
|
|||
name = "skin";
|
||||
if(slim) {
|
||||
img = convertSlim(img);
|
||||
Log.JNI.info("Skin " + source + " von 'Slim' konvertiert");
|
||||
Log.IO.info("Skin " + source + " von 'Slim' konvertiert");
|
||||
if(!name.startsWith("slim_"))
|
||||
name = "slim_" + name;
|
||||
}
|
||||
|
@ -217,10 +217,10 @@ public abstract class SkinConverter {
|
|||
ImageIO.write(img, "png", file);
|
||||
}
|
||||
catch(Exception e) {
|
||||
Log.JNI.error(e, "Konnte Bild nicht speichern");
|
||||
Log.IO.error(e, "Konnte Bild nicht speichern");
|
||||
return false;
|
||||
}
|
||||
Log.JNI.info("Skin " + source + " gespeichert als " + file.getName());
|
||||
Log.IO.info("Skin " + source + " gespeichert als " + file.getName());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ public class WorldClient extends AWorldClient
|
|||
}
|
||||
if (System.currentTimeMillis() - time > 100L)
|
||||
{
|
||||
Log.JNI.info("Warnung: Render-Chunk-Tick dauerte " + (System.currentTimeMillis() - time) + " ms");
|
||||
Log.TICK.warn("Render-Chunk-Tick dauerte " + (System.currentTimeMillis() - time) + " ms");
|
||||
}
|
||||
this.updateBlocks();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue