diff options
author | David Cole <40234707+DavidArthurCole@users.noreply.github.com> | 2024-09-26 19:40:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-27 09:40:07 +1000 |
commit | 65dde77f6d604faf4a87ddbff2477ee7629bc07f (patch) | |
tree | 732546fba8f09d20c8f789ce4c2c6b472ae6bbd2 /src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt | |
parent | 092a29dd8b13c2b04b0b7c259446ab697201dd5e (diff) | |
download | skyhanni-65dde77f6d604faf4a87ddbff2477ee7629bc07f.tar.gz skyhanni-65dde77f6d604faf4a87ddbff2477ee7629bc07f.tar.bz2 skyhanni-65dde77f6d604faf4a87ddbff2477ee7629bc07f.zip |
Backend: Detekt Fixes Part 1 (#2603)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt index bf0f2ba0a..da4b54942 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt @@ -182,7 +182,7 @@ class ConfigManager { try { run() } catch (e: Throwable) { - e.printStackTrace() + logger.log(e.stackTraceToString()) LorenzUtils.shutdownMinecraft("Config is corrupt inside development environment.") } } else { @@ -194,7 +194,7 @@ class ConfigManager { logger.log("Loaded $fileName from file") } catch (e: Exception) { - e.printStackTrace() + logger.log(e.stackTraceToString()) val backupFile = file.resolveSibling("$fileName-${SimpleTimeMark.now().toMillis()}-backup.json") logger.log("Exception while reading $file. Will load blank $fileName and save backup to $backupFile") logger.log("Exception was $e") @@ -202,7 +202,7 @@ class ConfigManager { file.copyTo(backupFile) } catch (e: Exception) { logger.log("Could not create backup for $fileName file") - e.printStackTrace() + logger.log(e.stackTraceToString()) } } } @@ -239,7 +239,7 @@ class ConfigManager { move(unit, file, reason) } catch (e: IOException) { logger.log("Could not save $fileName file to $file") - e.printStackTrace() + logger.log(e.stackTraceToString()) } } |