mirror of
https://github.com/exzork/GCAuth.git
synced 2024-11-30 18:58:54 +00:00
remove logging prefix
This commit is contained in:
parent
b129e90848
commit
32100cf5f3
@ -27,7 +27,7 @@ public class GCAuth extends Plugin {
|
|||||||
try {
|
try {
|
||||||
Files.createDirectories(configFile.toPath().getParent());
|
Files.createDirectories(configFile.toPath().getParent());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
getLogger().error("[GCAuth] Failed to create config.json");
|
getLogger().error("Failed to create config.json");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
loadConfig();
|
loadConfig();
|
||||||
@ -36,7 +36,7 @@ public class GCAuth extends Plugin {
|
|||||||
config.jwtSecret = Authentication.generateRandomString(32);
|
config.jwtSecret = Authentication.generateRandomString(32);
|
||||||
saveConfig();
|
saveConfig();
|
||||||
if (Grasscutter.getConfig().account.autoCreate) {
|
if (Grasscutter.getConfig().account.autoCreate) {
|
||||||
getLogger().warn("[GCAuth] GCAuth does not support automatic account creation. Please disable in the server's config.json or just ignore this warning.");
|
getLogger().warn("GCAuth does not support automatic account creation. Please disable in the server's config.json or just ignore this warning.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ public class GCAuth extends Plugin {
|
|||||||
try (FileWriter file = new FileWriter(configFile)) {
|
try (FileWriter file = new FileWriter(configFile)) {
|
||||||
file.write(gson.toJson(config));
|
file.write(gson.toJson(config));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
getLogger().error("[GCAuth] Unable to save config file.");
|
getLogger().error("Unable to save config file.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user