Lowering the logging severity level from info to debug for specific services (#4948)

* Changed the two files to reduce info level to debug level for select services.

* Adding change log

---------

Co-authored-by: peartree <etienne.poirier@smilecdr.com>
This commit is contained in:
LalithE 2023-07-20 10:52:11 -04:00 committed by GitHub
parent 41a1d0ad5f
commit 2fbd3fa272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -0,0 +1,4 @@
---
type: fix
issue: 4947
title: "Previously, logging level on specific services was set too high. This has been modified."

View File

@ -64,9 +64,9 @@ public class ResourceSearchUrlSvc {
* Perform removal of entries older than {@code theCutoffDate} since the create operations are done.
*/
public void deleteEntriesOlderThan(Date theCutoffDate) {
ourLog.info("About to delete SearchUrl which are older than {}", theCutoffDate);
ourLog.debug("About to delete SearchUrl which are older than {}", theCutoffDate);
int deletedCount = myResourceSearchUrlDao.deleteAllWhereCreatedBefore(theCutoffDate);
ourLog.info("Deleted {} SearchUrls", deletedCount);
ourLog.debug("Deleted {} SearchUrls", deletedCount);
}
/**

View File

@ -203,7 +203,7 @@ public class JobMaintenanceServiceImpl implements IJobMaintenanceService, IHasSc
return;
}
try {
ourLog.info("Maintenance pass starting.");
ourLog.debug("Maintenance pass starting.");
doMaintenancePass();
} catch (Exception e) {
ourLog.error("Maintenance pass failed", e);