Merge remote-tracking branch 'origin/feature/remote-media-file-size-limit' into feature/remote-media-file-size-limit

This commit is contained in:
usbharu 2024-01-25 15:03:15 +09:00
commit 995d40f0a4
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ class RemoteMediaDownloadServiceImpl(
val contentLength = createTempFile.toFile().length()
if (contentLength >= mediaConfig.remoteMediaFileSizeLimit) {
throw RemoteMediaFileSizeException("File size is too large. $contentLength >= ${mediaConfig.remoteMediaFileSizeLimit}")
throw RemoteMediaFileSizeException(
"File size is too large. $contentLength >= ${mediaConfig.remoteMediaFileSizeLimit}"
)
}
logger.info("SUCCESS Download remote file. url: {}", url)