@@ -113,7 +113,7 @@ class SentryLogcatAdapterTest {
113113 fixture.breadcrumbs.first().assert (tag, " $commonMsg error exception" , SentryLevel .ERROR )
114114 fixture.logs
115115 .first()
116- .assert (" $commonMsg error exception\n ${throwable.stackTraceToString() } " , SentryLogLevel .ERROR )
116+ .assert (" $commonMsg error exception\n ${throwable.message } " , SentryLogLevel .ERROR )
117117 }
118118
119119 @Test
@@ -124,7 +124,7 @@ class SentryLogcatAdapterTest {
124124 fixture.logs
125125 .first()
126126 .assert (
127- " $commonMsg verbose exception\n ${throwable.stackTraceToString() } " ,
127+ " $commonMsg verbose exception\n ${throwable.message } " ,
128128 SentryLogLevel .TRACE ,
129129 )
130130 }
@@ -136,7 +136,7 @@ class SentryLogcatAdapterTest {
136136 fixture.breadcrumbs.first().assert (tag, " $commonMsg info exception" , SentryLevel .INFO )
137137 fixture.logs
138138 .first()
139- .assert (" $commonMsg info exception\n ${throwable.stackTraceToString() } " , SentryLogLevel .INFO )
139+ .assert (" $commonMsg info exception\n ${throwable.message } " , SentryLogLevel .INFO )
140140 }
141141
142142 @Test
@@ -146,7 +146,7 @@ class SentryLogcatAdapterTest {
146146 fixture.breadcrumbs.first().assert (tag, " $commonMsg debug exception" , SentryLevel .DEBUG )
147147 fixture.logs
148148 .first()
149- .assert (" $commonMsg debug exception\n ${throwable.stackTraceToString() } " , SentryLogLevel .DEBUG )
149+ .assert (" $commonMsg debug exception\n ${throwable.message } " , SentryLogLevel .DEBUG )
150150 }
151151
152152 @Test
@@ -157,7 +157,7 @@ class SentryLogcatAdapterTest {
157157 fixture.logs
158158 .first()
159159 .assert (
160- " $commonMsg warning exception\n ${throwable.stackTraceToString() } " ,
160+ " $commonMsg warning exception\n ${throwable.message } " ,
161161 SentryLogLevel .WARN ,
162162 )
163163 }
@@ -169,7 +169,7 @@ class SentryLogcatAdapterTest {
169169 fixture.breadcrumbs.first().assert (tag, " $commonMsg wtf exception" , SentryLevel .ERROR )
170170 fixture.logs
171171 .first()
172- .assert (" $commonMsg wtf exception\n ${throwable.stackTraceToString() } " , SentryLogLevel .FATAL )
172+ .assert (" $commonMsg wtf exception\n ${throwable.message } " , SentryLogLevel .FATAL )
173173 }
174174
175175 @Test
0 commit comments