Commit 4ccd46c3 by Kim Jinsung

ログ出力なし

USBからファイル取得時の例外処理のエラーステータス変更
parent 608f075b
...@@ -74,7 +74,7 @@ public class MainActivity extends ParentActivity { ...@@ -74,7 +74,7 @@ public class MainActivity extends ParentActivity {
application.startTimer(); application.startTimer();
} catch (Exception e) { } catch (Exception e) {
mMessageTextView.setText(getString(R.string.initDisplayStringError, ToiletInfo.VALUE_DEFAULT_TOILET_NULL)); mMessageTextView.setText(getString(R.string.initDisplayStringError, ToiletInfo.VALUE_DEFAULT_TOILET_VALIDATION_FAIL));
Logger.e(TAG, e.getLocalizedMessage(), e); Logger.e(TAG, e.getLocalizedMessage(), e);
} }
} }
......
...@@ -27,11 +27,11 @@ public class ToiletApplication extends Application { ...@@ -27,11 +27,11 @@ public class ToiletApplication extends Application {
@Override @Override
public void onCreate() { public void onCreate() {
super.onCreate(); super.onCreate();
Logger logger = new Logger(); // Logger logger = new Logger();
File downloadFilePath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS); // File downloadFilePath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
String logPath = downloadFilePath.getPath() + "/" + APP_LOG_PATH; // String logPath = downloadFilePath.getPath() + "/" + APP_LOG_PATH;
logger.setLogPathFormat(logPath); // logger.setLogPathFormat(logPath);
FileUtil.createParentDirectory(logPath); // FileUtil.createParentDirectory(logPath);
Logger.i(TAG, "onCreate"); Logger.i(TAG, "onCreate");
} }
......
...@@ -282,27 +282,27 @@ public class Logger extends AbstractLogger { ...@@ -282,27 +282,27 @@ public class Logger extends AbstractLogger {
} }
private static boolean isLoggable(int level) { private static boolean isLoggable(int level) {
return true; return false;
} }
public static boolean isVerboseEnabled() { public static boolean isVerboseEnabled() {
return true; return false;
} }
public static boolean isDebugEnabled() { public static boolean isDebugEnabled() {
return true; return false;
} }
public static boolean isInfoEnabled() { public static boolean isInfoEnabled() {
return true; return false;
} }
public static boolean isWarnEnabled() { public static boolean isWarnEnabled() {
return true; return false;
} }
public static boolean isErrorEnabled() { public static boolean isErrorEnabled() {
return true; return false;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment