Skip to content

Commit 81dc3b1

Browse files
committed
to fix logs
1 parent 04dd7c4 commit 81dc3b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/src/main/scala/app/softnetwork/utils/ImageTools.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ object ImageTools extends StrictLogging {
7676
if (sizes.nonEmpty) {
7777
logger.info(
7878
s"""Trying to resize image $originalPath to
79-
|${sizes.map(s => s"{s.width}x${s.height}").mkString(",")}""".stripMargin
79+
|${sizes.map(s => s"${s.width}x${s.height}").mkString(",")}""".stripMargin
8080
)
8181
Try(ImageIO.read(Files.newInputStream(originalPath))) match {
8282
case Success(src) =>
@@ -96,7 +96,7 @@ object ImageTools extends StrictLogging {
9696
case Failure(f) =>
9797
logger.error(
9898
s"""an error occurred while trying to resize image $originalPath to
99-
|${sizes.map(s => s"{s.width}x${s.height}").mkString(",")} :
99+
|${sizes.map(s => s"${s.width}x${s.height}").mkString(",")} :
100100
|${f.getMessage}""".stripMargin
101101
)
102102
false
@@ -107,7 +107,7 @@ object ImageTools extends StrictLogging {
107107
case _ =>
108108
logger.error(
109109
s"""an error occurred while trying to resize $originalPath to
110-
|${imageSizes.map(s => s"{s.width}x${s.height}").mkString(",")}""".stripMargin
110+
|${imageSizes.map(s => s"${s.width}x${s.height}").mkString(",")}""".stripMargin
111111
)
112112
false
113113
}

0 commit comments

Comments
 (0)