Commit a04f42e3 authored by Administrator's avatar Administrator

update

parent 06cb5707
......@@ -42,14 +42,15 @@ public class FileLogger {
processName = processName.replace(":", "_");
File filename = new File(dir, processName + "__" + System.currentTimeMillis() + ".txt");
File filename = new File(dir, processName + ".txt");
RposedBridge.log("filename:" + filename.getAbsolutePath());
try {
if (filename.createNewFile()) {
outputStream = new FileOutputStream(filename, true);
} else {
RposedBridge.log("failed to create log file :" + filename.getAbsolutePath());
if (!filename.exists()) {
if (!filename.createNewFile()) {
RposedBridge.log("failed to create log file :" + filename.getAbsolutePath());
}
}
outputStream = new FileOutputStream(filename, true);
} catch (IOException e) {
e.printStackTrace();
return;
......
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