Commit 4ccd46c3 by Kim Jinsung

ログ出力なし

USBからファイル取得時の例外処理のエラーステータス変更
parent 608f075b
......@@ -74,7 +74,7 @@ public class MainActivity extends ParentActivity {
application.startTimer();
} 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);
}
}
......
......@@ -27,11 +27,11 @@ public class ToiletApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
Logger logger = new Logger();
File downloadFilePath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
String logPath = downloadFilePath.getPath() + "/" + APP_LOG_PATH;
logger.setLogPathFormat(logPath);
FileUtil.createParentDirectory(logPath);
// Logger logger = new Logger();
// File downloadFilePath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
// String logPath = downloadFilePath.getPath() + "/" + APP_LOG_PATH;
// logger.setLogPathFormat(logPath);
// FileUtil.createParentDirectory(logPath);
Logger.i(TAG, "onCreate");
}
......
......@@ -282,27 +282,27 @@ public class Logger extends AbstractLogger {
}
private static boolean isLoggable(int level) {
return true;
return false;
}
public static boolean isVerboseEnabled() {
return true;
return false;
}
public static boolean isDebugEnabled() {
return true;
return false;
}
public static boolean isInfoEnabled() {
return true;
return false;
}
public static boolean isWarnEnabled() {
return true;
return false;
}
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