@@ -377,7 +377,7 @@ private void startHttpServer() {
377
377
usAscii .setAccessible (true );
378
378
usAscii .set (Charsets .class , Charsets .UTF_8 );
379
379
} catch (final Exception e ) {
380
- Utils .LogError ("http" , "init charset failed" , e );
380
+ Utils .logError ("http" , "init charset failed" , e );
381
381
}
382
382
383
383
server = new AsyncHttpServer ();
@@ -398,20 +398,20 @@ private void startHttpServer() {
398
398
info .put ("updated" , file .lastModified ());
399
399
info .put ("isDir" , file .isDirectory ());
400
400
} catch (final Exception e ) {
401
- Utils .LogError ("http" , "walk dir failed" , e );
401
+ Utils .logError ("http" , "walk dir failed" , e );
402
402
}
403
403
files .put (info );
404
404
});
405
405
data .put ("files" , files );
406
406
final JSONObject responseJSON = new JSONObject ().put ("code" , 0 ).put ("msg" , "" ).put ("data" , data );
407
407
response .send (responseJSON );
408
- Utils .LogInfo ("http" , "Walk dir [" + dir + "] in [" + (System .currentTimeMillis () - start ) + "] ms" );
408
+ Utils .logInfo ("http" , "Walk dir [" + dir + "] in [" + (System .currentTimeMillis () - start ) + "] ms" );
409
409
} catch (final Exception e ) {
410
- Utils .LogError ("http" , "walk dir failed" , e );
410
+ Utils .logError ("http" , "walk dir failed" , e );
411
411
try {
412
412
response .send (new JSONObject ().put ("code" , -1 ).put ("msg" , e .getMessage ()));
413
413
} catch (final Exception e2 ) {
414
- Utils .LogError ("http" , "walk dir failed" , e2 );
414
+ Utils .logError ("http" , "walk dir failed" , e2 );
415
415
}
416
416
}
417
417
});
@@ -425,7 +425,7 @@ private void startHttpServer() {
425
425
// 生产环境绑定 ipv6 回环地址 [::1] 以防止被远程访问
426
426
s .listen (InetAddress .getLoopbackAddress (), serverPort , server .getListenCallback ());
427
427
}
428
- Utils .LogInfo ("http" , "HTTP server is listening on port [" + serverPort + "]" );
428
+ Utils .logInfo ("http" , "HTTP server is listening on port [" + serverPort + "]" );
429
429
}
430
430
431
431
private int getAvailablePort () {
@@ -435,7 +435,7 @@ private int getAvailablePort() {
435
435
ret = s .getLocalPort ();
436
436
s .close ();
437
437
} catch (final Exception e ) {
438
- Utils .LogError ("http" , "get available port failed" , e );
438
+ Utils .logError ("http" , "get available port failed" , e );
439
439
}
440
440
return ret ;
441
441
}
@@ -562,7 +562,7 @@ private void initAppearance() {
562
562
try {
563
563
FileUtils .deleteDirectory (new File (appDir ));
564
564
} catch (final Exception e ) {
565
- Utils .LogError ("boot" , "delete dir [" + appDir + "] failed, exit application" , e );
565
+ Utils .logError ("boot" , "delete dir [" + appDir + "] failed, exit application" , e );
566
566
exit ();
567
567
return ;
568
568
}
@@ -573,7 +573,7 @@ private void initAppearance() {
573
573
try {
574
574
FileUtils .writeStringToFile (appVerFile , Utils .versionCode + "" , StandardCharsets .UTF_8 );
575
575
} catch (final Exception e ) {
576
- Utils .LogError ("boot" , "write version failed" , e );
576
+ Utils .logError ("boot" , "write version failed" , e );
577
577
}
578
578
579
579
setBootProgress ("Booting kernel..." , 80 );
@@ -591,7 +591,7 @@ private void sleep(final long time) {
591
591
try {
592
592
Thread .sleep (time );
593
593
} catch (final Exception e ) {
594
- Utils .LogError ("runtime" , "sleep failed" , e );
594
+ Utils .logError ("runtime" , "sleep failed" , e );
595
595
}
596
596
}
597
597
@@ -723,7 +723,7 @@ private boolean needUnzipAssets() {
723
723
return true ;
724
724
}
725
725
} catch (final Exception e ) {
726
- Utils .LogError ("boot" , "check version failed" , e );
726
+ Utils .logError ("boot" , "check version failed" , e );
727
727
}
728
728
return ret ;
729
729
}
@@ -783,7 +783,7 @@ private void checkWebViewVer(final WebSettings ws) {
783
783
}
784
784
}
785
785
} catch (final Exception e ) {
786
- Utils .LogError ("boot" , "check webview version failed" , e );
786
+ Utils .logError ("boot" , "check webview version failed" , e );
787
787
Utils .showToast (this , "Check WebView version failed: " + e .getMessage ());
788
788
}
789
789
}
@@ -814,12 +814,12 @@ public static void syncData() {
814
814
@ Override
815
815
public void onCompleted (Exception e , com .koushikdutta .async .http .AsyncHttpResponse source , JSONObject result ) {
816
816
if (null != e ) {
817
- Utils .LogError ("sync" , "data sync failed" , e );
817
+ Utils .logError ("sync" , "data sync failed" , e );
818
818
}
819
819
}
820
820
});
821
821
} catch (final Throwable e ) {
822
- Utils .LogError ("sync" , "data sync failed" , e );
822
+ Utils .logError ("sync" , "data sync failed" , e );
823
823
} finally {
824
824
syncing = false ;
825
825
}
0 commit comments