mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
write in textfiled only if failed something
This commit is contained in:
committed by
Hristo Deshev
parent
f5f5e663cd
commit
77e509f01c
@@ -7,7 +7,7 @@ import textViewModule = require("ui/text-view");
|
||||
|
||||
class MyTraceWriter implements trace.TraceWriter {
|
||||
public write(message: any, category: string) {
|
||||
if (textView) {
|
||||
if (textView && message && message.toLowerCase().indexOf("failed") !== -1) {
|
||||
if (textView.android) {
|
||||
textView.text = message + "\r\n" + textView.text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user