1
0
mirror of https://github.com/etesync/android synced 2024-11-15 12:28:57 +00:00

Fix user agent and external logging file name.

This commit is contained in:
Tom Hacohen 2017-02-13 17:11:47 +00:00
parent bfaffc1f38
commit 69864ac781
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ public class App extends Application {
File dir = getExternalFilesDir(null);
if (dir != null)
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();
log.info("Logging to " + fileName);

View File

@ -41,7 +41,7 @@ public class HttpClient {
static {
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() {