mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-02 13:10:55 +00:00
DevUpdateServer: Minor logging changes.
This commit is contained in:
parent
a7d7c9f818
commit
7f9bd32cc7
@ -39,7 +39,7 @@ class DevUpdateServer(val plugin: FoundationCorePlugin) {
|
||||
}
|
||||
|
||||
if (config.token.length < 8) {
|
||||
plugin.slF4JLogger.warn("DevUpdate Token was too short (must be 8 or more characters)")
|
||||
plugin.slF4JLogger.warn("DevUpdateServer Token was too short (must be 8 or more characters)")
|
||||
return
|
||||
}
|
||||
|
||||
@ -98,11 +98,7 @@ class DevUpdateServer(val plugin: FoundationCorePlugin) {
|
||||
plugin.slF4JLogger.info("DevUpdate Started")
|
||||
UpdateService.updatePlugins(plugin.server.consoleSender) {
|
||||
plugin.server.scheduler.runTask(plugin) { ->
|
||||
try {
|
||||
plugin.server.shutdown()
|
||||
} catch (e: Exception) {
|
||||
plugin.slF4JLogger.error("DevUpdate Server failed to update server.", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user