summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-01-07 16:02:21 +0100
committerArne Schwabe <arne@rfc2549.org>2013-01-07 16:02:21 +0100
commit15659163206e8918e93b44702579735d3206ca90 (patch)
tree848abd992465d456f8e7de8580619070f1c80113
parent7fe783631b4a48d3d3d422f302f736e8b215f0c1 (diff)
Logs arguments to strings for minidump
-rw-r--r--res/values/arrays.xml2
-rw-r--r--src/de/blinkt/openvpn/OpenVPN.java7
2 files changed, 7 insertions, 2 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 4af8f90f..94adba18 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -17,7 +17,7 @@
<item>Unspecified</item>
</string-array>
<string-array name="verb_entries">
- <item>0 - No Logging</item>
+ <item>0 - No logging</item>
<item>1 - Default logging</item>
<item>2 - More verbose logging</item>
<item>3</item>
diff --git a/src/de/blinkt/openvpn/OpenVPN.java b/src/de/blinkt/openvpn/OpenVPN.java
index 342f02c0..82a8dfd8 100644
--- a/src/de/blinkt/openvpn/OpenVPN.java
+++ b/src/de/blinkt/openvpn/OpenVPN.java
@@ -1,6 +1,7 @@
package de.blinkt.openvpn;
import java.util.LinkedList;
+import java.util.Locale;
import java.util.Vector;
import android.content.Context;
@@ -78,7 +79,11 @@ public class OpenVPN {
else
return c.getString(mRessourceId,mArgs);
} else {
- return String.format("Log (no context) resid %d", mRessourceId);
+ String str = String.format(Locale.ENGLISH,"Log (no context) resid %d", mRessourceId);
+ if(mArgs !=null)
+ for(Object o:mArgs)
+ str += "|" + o.toString();
+ return str;
}
}
}