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;
|
package com.jamesquinley.Asecure;
|
||||||
|
|
||||||
import javax.jws.soap.SOAPBinding;
|
|
||||||
import javax.mail.*;
|
import javax.mail.*;
|
||||||
import javax.mail.internet.InternetAddress;
|
import javax.mail.internet.InternetAddress;
|
||||||
import javax.mail.internet.MimeMessage;
|
import javax.mail.internet.MimeMessage;
|
||||||
|
@ -1479,7 +1479,7 @@ public class delegationServices {
|
|||||||
String bugSeverity = Lrequest.get("bugSeverity").toString();
|
String bugSeverity = Lrequest.get("bugSeverity").toString();
|
||||||
String timeCurrent = LocalDateTime.now().toString(); //ISO-8601: yyyy-MM-ddTHH:mm:ss.S
|
String timeCurrent = LocalDateTime.now().toString(); //ISO-8601: yyyy-MM-ddTHH:mm:ss.S
|
||||||
try {
|
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()) {
|
if (myObj.createNewFile()) {
|
||||||
System.out.println("Log File created: " + myObj.getName());
|
System.out.println("Log File created: " + myObj.getName());
|
||||||
} else {
|
} else {
|
||||||
@ -1489,7 +1489,7 @@ public class delegationServices {
|
|||||||
System.out.println("An error occurred.");
|
System.out.println("An error occurred.");
|
||||||
e.printStackTrace();
|
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("This bug report is for: " + applicationName);
|
||||||
writer.write("\r\n");
|
writer.write("\r\n");
|
||||||
writer.write("The bug severity is level: " + bugSeverity);
|
writer.write("The bug severity is level: " + bugSeverity);
|
||||||
@ -1521,7 +1521,7 @@ public class delegationServices {
|
|||||||
String bugLog = Lrequest.get("bugLog").toString();
|
String bugLog = Lrequest.get("bugLog").toString();
|
||||||
String timeCurrent = LocalDateTime.now().toString(); //ISO-8601: yyyy-MM-ddTHH:mm:ss.S
|
String timeCurrent = LocalDateTime.now().toString(); //ISO-8601: yyyy-MM-ddTHH:mm:ss.S
|
||||||
try {
|
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()) {
|
if (myObj.createNewFile()) {
|
||||||
System.out.println("Log File created: " + myObj.getName());
|
System.out.println("Log File created: " + myObj.getName());
|
||||||
} else {
|
} else {
|
||||||
@ -1531,7 +1531,7 @@ public class delegationServices {
|
|||||||
System.out.println("An error occurred.");
|
System.out.println("An error occurred.");
|
||||||
e.printStackTrace();
|
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("This bug report is for: " + applicationName);
|
||||||
writer.write("\r\n");
|
writer.write("\r\n");
|
||||||
writer.write("The bug severity is level: " + bugSeverity);
|
writer.write("The bug severity is level: " + bugSeverity);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user