Changes how files are named to allow for bug details to be previewed before file is opened.
This commit is contained in:
parent
89c5e6c24c
commit
9968d404e2
@ -1,6 +1,5 @@
|
||||
package com.jamesquinley.Asecure;
|
||||
|
||||
import javax.jws.soap.SOAPBinding;
|
||||
import javax.mail.*;
|
||||
import javax.mail.internet.InternetAddress;
|
||||
import javax.mail.internet.MimeMessage;
|
||||
|
@ -1479,7 +1479,7 @@ public class delegationServices {
|
||||
String bugSeverity = Lrequest.get("bugSeverity").toString();
|
||||
String timeCurrent = LocalDateTime.now().toString(); //ISO-8601: yyyy-MM-ddTHH:mm:ss.S
|
||||
try {
|
||||
File myObj = new File(homedir + "/ocs/logs/" + applicationName + timeCurrent +".txt");
|
||||
File myObj = new File(homedir + "/ocs/logs/" + applicationName + bugDetails + timeCurrent +".txt");
|
||||
if (myObj.createNewFile()) {
|
||||
System.out.println("Log File created: " + myObj.getName());
|
||||
} else {
|
||||
@ -1489,7 +1489,7 @@ public class delegationServices {
|
||||
System.out.println("An error occurred.");
|
||||
e.printStackTrace();
|
||||
}
|
||||
FileWriter writer = new FileWriter(homedir + "/ocs/logs/" + applicationName + timeCurrent +".txt", true);
|
||||
FileWriter writer = new FileWriter(homedir + "/ocs/logs/" + applicationName + bugDetails + timeCurrent +".txt", true);
|
||||
writer.write("This bug report is for: " + applicationName);
|
||||
writer.write("\r\n");
|
||||
writer.write("The bug severity is level: " + bugSeverity);
|
||||
@ -1521,7 +1521,7 @@ public class delegationServices {
|
||||
String bugLog = Lrequest.get("bugLog").toString();
|
||||
String timeCurrent = LocalDateTime.now().toString(); //ISO-8601: yyyy-MM-ddTHH:mm:ss.S
|
||||
try {
|
||||
File myObj = new File(homedir + "/ocs/logs/" + applicationName + timeCurrent +".txt");
|
||||
File myObj = new File(homedir + "/ocs/logs/" + applicationName + bugDetails + timeCurrent +".txt");
|
||||
if (myObj.createNewFile()) {
|
||||
System.out.println("Log File created: " + myObj.getName());
|
||||
} else {
|
||||
@ -1531,7 +1531,7 @@ public class delegationServices {
|
||||
System.out.println("An error occurred.");
|
||||
e.printStackTrace();
|
||||
}
|
||||
FileWriter writer = new FileWriter(homedir + "/ocs/logs/" + applicationName + timeCurrent +".txt", true);
|
||||
FileWriter writer = new FileWriter(homedir + "/ocs/logs/" + applicationName + bugDetails + timeCurrent +".txt", true);
|
||||
writer.write("This bug report is for: " + applicationName);
|
||||
writer.write("\r\n");
|
||||
writer.write("The bug severity is level: " + bugSeverity);
|
||||
|
Loading…
x
Reference in New Issue
Block a user