Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 8f698c8

Browse files
committed
even shorter descriptions in logs, inline the description
1 parent 2a87c78 commit 8f698c8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

core/src/main/scala/io/pg/TextUtils.scala

+3
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ object TextUtils {
88
else s
99
}
1010

11+
def inline(s: String): String =
12+
s.replaceAll("\n", " ")
13+
1114
}

gitlab/src/main/scala/io/pg/gitlab/Gitlab.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ object Gitlab {
7272
}
7373

7474
implicit val showTrimmed: Show[MergeRequestInfo] =
75-
MergeRequestInfo.description.modify(_.map(TextUtils.trim(maxChars = 80))).apply(_).toString
75+
MergeRequestInfo.description.modify(_.map(TextUtils.inline).map(TextUtils.trim(maxChars = 30))).apply(_).toString
7676
}
7777

7878
def sttpInstance[F[_]: Logger: MonadError[*[_], Throwable]](

0 commit comments

Comments
 (0)