Skip to content

Commit

Permalink
chore: log 'The mod already exists.' message as warning in ModsSyncSe…
Browse files Browse the repository at this point in the history
…rvice to be consistent with ResourcePacksSyncService
  • Loading branch information
Ellet committed Jul 10, 2024
1 parent da8aa25 commit 09ab5f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sync-script/src/main/kotlin/syncService/ModsSyncService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class ModsSyncService :
val modFileName = getFileNameFromUrlOrError(mod.downloadUrl)
val modFilePath = getModFilePath(mod)
if (modFilePath.exists()) {
Logger.info { "\uFE0F The mod: '$modFileName' already exists." }
Logger.warning { "\uFE0F The mod: '$modFileName' already exists." }
}

Logger.info { "\uD83D\uDD3D Downloading mod '$modFileName' from ${mod.downloadUrl}" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ class ResourcePacksSyncService :
val resourcePackFileName = getFileNameFromUrlOrError(resourcePack.downloadUrl)
val resourcePackFilePath = getResourcePackFilePath(resourcePack)
if (resourcePackFilePath.exists()) {
Logger.warning {
"\uFE0F The resource-pack: '$resourcePackFileName' already exists."
}
Logger.warning { "\uFE0F The resource-pack: '$resourcePackFileName' already exists." }
}

Logger.info { "\uD83D\uDD3D Downloading resource-pack '$resourcePackFileName' from ${resourcePack.downloadUrl}" }
Expand Down

0 comments on commit 09ab5f8

Please sign in to comment.