README.html into logs folder
This commit is contained in:
parent
0c1cafde57
commit
e2e150c79b
|
@ -9,5 +9,6 @@
|
|||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" exported="" name="annotations" level="project" />
|
||||
<orderEntry type="module" module-name="opensr5" exported="" />
|
||||
<orderEntry type="module" module-name="enum_to_string" />
|
||||
</component>
|
||||
</module>
|
|
@ -1,6 +1,7 @@
|
|||
package com.rusefi;
|
||||
|
||||
import com.opensr5.Logger;
|
||||
import com.rusefi.util.LazyFile;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
|
@ -54,10 +55,22 @@ public enum FileLog {
|
|||
} catch (FileNotFoundException e) {
|
||||
throw new IllegalStateException(e);
|
||||
}
|
||||
new Thread(FileLog::writeReadmeFile).start();
|
||||
// a bit strange spot for this invocation for sure
|
||||
printOsInfo();
|
||||
}
|
||||
|
||||
private static void writeReadmeFile() {
|
||||
LazyFile file = new LazyFile(DIR + "README.html");
|
||||
file.write("<center>" +
|
||||
"<a href='https://github.com/rusefi/rusefi/wiki/rusEFI-logs-folder'>More info online<br/><img src=https://raw.githubusercontent.com/wiki/rusefi/rusefi/logo.gif></a>");
|
||||
try {
|
||||
file.close();
|
||||
} catch (IOException e) {
|
||||
// ignoring this one
|
||||
}
|
||||
}
|
||||
|
||||
private static void printOsInfo() {
|
||||
MAIN.logLine("OS name: " + getOsName());
|
||||
MAIN.logLine("OS version: " + System.getProperty(OS_VERSION));
|
||||
|
|
|
@ -42,7 +42,7 @@ import static com.rusefi.ui.storage.PersistentConfiguration.getConfig;
|
|||
* @see EngineSnifferPanel
|
||||
*/
|
||||
public class Launcher {
|
||||
public static final int CONSOLE_VERSION = 20200522;
|
||||
public static final int CONSOLE_VERSION = 20200530;
|
||||
public static final String INPUT_FILES_PATH = System.getProperty("input_files_path", "..");
|
||||
public static final String TOOLS_PATH = System.getProperty("tools_path", ".");
|
||||
public static final String TAB_INDEX = "main_tab";
|
||||
|
|
|
@ -139,7 +139,7 @@ public class SensorLogger {
|
|||
|
||||
private static void startSensorLogFile() {
|
||||
FileLog.createFolderIfNeeded();
|
||||
String fileName = FileLog.DIR + FileLog.getDate() + ".msl";
|
||||
String fileName = FileLog.DIR + "rusEFI_" + FileLog.getDate() + ".msl";
|
||||
|
||||
fileStartTime = System.currentTimeMillis();
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue