Fixes some more bugs, general tweaks to help stability.
This commit is contained in:
parent
0217a96151
commit
3b69fce342
@ -1485,14 +1485,15 @@ public class delegationServices {
|
||||
}
|
||||
if (requesttype == 65)
|
||||
{
|
||||
BasicDBObject searchQuery = new BasicDBObject();
|
||||
searchQuery.append("clientid", ClientID);
|
||||
System.out.println("Collecting Error Data");
|
||||
File homedir = new File(System.getProperty("user.home"));
|
||||
String applicationName = Lrequest.get("applicationName").toString();
|
||||
String bugType = Lrequest.get("bugType").toString();
|
||||
String bugDetails = Lrequest.get("bugDetails").toString();
|
||||
String bugSeverity = Lrequest.get("bugSeverity").toString();
|
||||
DateTimeFormatter timeSetup = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm:ss");
|
||||
String timeCurrent = java.time.LocalTime.now().format(timeSetup);
|
||||
String timeCurrent = java.time.LocalTime.now().format(DateTimeFormatter.ISO_LOCAL_DATE_TIME);
|
||||
FileWriter writer = new FileWriter(homedir + "/ocs/logs/" + applicationName + timeCurrent +".txt", true);
|
||||
writer.write("This bug report is for: " + applicationName);
|
||||
writer.write("\r\n");
|
||||
@ -1506,6 +1507,10 @@ public class delegationServices {
|
||||
writer.write("\r\n");
|
||||
writer.write("Submission Time (Local To Server): " + timeCurrent);
|
||||
writer.close();
|
||||
BasicDBObject updateQuery = new BasicDBObject();
|
||||
updateQuery.append("$set",
|
||||
new BasicDBObject().append("status", true));
|
||||
dCollection.updateOne(searchQuery, updateQuery);
|
||||
delegationServices.TargetDelete(ClientID);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user