Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f1f6edaa
Kaydet (Commit)
f1f6edaa
authored
Şub 16, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make LogUtils.getTrace actually work
Change-Id: I59e2b93ed1142bac22ead08cc101e27cfa3e02df
üst
56e0afab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
26 deletions
+6
-26
LogUtils.java
...ting/java/com/sun/star/script/framework/log/LogUtils.java
+6
-26
No files found.
scripting/java/com/sun/star/script/framework/log/LogUtils.java
Dosyayı görüntüle @
f1f6edaa
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
package
com
.
sun
.
star
.
script
.
framework
.
log
;
package
com
.
sun
.
star
.
script
.
framework
.
log
;
import
java.io.
ByteArrayOutputStream
;
import
java.io.
StringWriter
;
import
java.io.Print
Stream
;
import
java.io.Print
Writer
;
public
class
LogUtils
{
public
class
LogUtils
{
...
@@ -50,27 +50,8 @@ public class LogUtils {
...
@@ -50,27 +50,8 @@ public class LogUtils {
}
}
public
static
String
getTrace
(
Exception
e
)
{
public
static
String
getTrace
(
Exception
e
)
{
ByteArrayOutputStream
baos
=
null
;
StringWriter
w
=
new
StringWriter
();
PrintStream
ps
=
null
;
e
.
printStackTrace
(
new
PrintWriter
(
w
));
String
result
=
""
;
return
w
.
toString
();
try
{
baos
=
new
ByteArrayOutputStream
();
ps
=
new
PrintStream
(
baos
);
e
.
printStackTrace
(
ps
);
}
finally
{
try
{
if
(
baos
!=
null
)
{
baos
.
close
();
}
if
(
ps
!=
null
)
{
ps
.
close
();
}
}
catch
(
Exception
excp
)
{
}
}
return
result
;
}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment