mirror of
https://github.com/etesync/android
synced 2024-11-15 20:38:58 +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);
|
||||
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);
|
||||
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user