mirror of
https://github.com/etesync/android
synced 2025-08-05 13:25:21 +00:00
Fix user agent and external logging file name.
This commit is contained in:
parent
bfaffc1f38
commit
69864ac781
@ -123,7 +123,7 @@ public class App extends Application {
|
|||||||
File dir = getExternalFilesDir(null);
|
File dir = getExternalFilesDir(null);
|
||||||
if (dir != null)
|
if (dir != null)
|
||||||
try {
|
try {
|
||||||
String fileName = new File(dir, "davdroid-" + Process.myPid() + "-" +
|
String fileName = new File(dir, "etesync-" + Process.myPid() + "-" +
|
||||||
DateFormatUtils.format(System.currentTimeMillis(), "yyyyMMdd-HHmmss") + ".txt").toString();
|
DateFormatUtils.format(System.currentTimeMillis(), "yyyyMMdd-HHmmss") + ".txt").toString();
|
||||||
log.info("Logging to " + fileName);
|
log.info("Logging to " + fileName);
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ public class HttpClient {
|
|||||||
|
|
||||||
static {
|
static {
|
||||||
String date = new SimpleDateFormat("yyyy/MM/dd", Locale.US).format(new Date(BuildConfig.buildTime));
|
String date = new SimpleDateFormat("yyyy/MM/dd", Locale.US).format(new Date(BuildConfig.buildTime));
|
||||||
userAgent = "DAVdroid/" + BuildConfig.VERSION_NAME + " (" + date + "; okhttp3) Android/" + Build.VERSION.RELEASE;
|
userAgent = "EteSync/" + BuildConfig.VERSION_NAME + " (" + date + "; okhttp3) Android/" + Build.VERSION.RELEASE;
|
||||||
}
|
}
|
||||||
|
|
||||||
private HttpClient() {
|
private HttpClient() {
|
||||||
|
Loading…
Reference in New Issue
Block a user