User input viewer bug

PAMGuard was marking multiline comments as changed and then relogging
them. Led to exponential increase in database size!
This commit is contained in:
Douglas Gillespie 2023-12-14 10:33:46 +00:00
parent 03483ded18
commit 02ad66db3b

View File

@ -136,7 +136,9 @@ public class UserInputLogger extends SQLLogging {
if (dataUnit != null && dataUnit.getDatabaseIndex() != databaseIndex) {
dataUnit.setDatabaseIndex(databaseIndex);
dataUnit.setUserString(dataUnit.getUserString() + " " + txt);
getPamDataBlock().updatePamData(dataUnit, timeMilliseconds);
// don't call this next line, it causes the unit to get relogged.
// getPamDataBlock().updatePamData(dataUnit, timeMilliseconds);
dataUnit.clearUpdateCount();
}
else {
dataUnit = new UserInputDataUnit(timeMilliseconds, txt);