mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
refactor: move [POLICY] entry to DEBUG, add [DETAIL-POLICY-CHECK] at caller
- Downgrade [POLICY] entry from INFO→DEBUG (redundant with caller logs) - Add [DETAIL-POLICY-CHECK] debug log in detail() before policy check - Enables distinguishing caller context: [DETAIL-POLICY] vs [LIST-PAGE-POLICY]
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ public class TenantVisitorFloorPolicyService {
|
|||||||
if (CollectionUtils.isEmpty(orgIds)) {
|
if (CollectionUtils.isEmpty(orgIds)) {
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
log.info("[POLICY] entry orgIds={}", orgIds);
|
log.debug("[POLICY] entry orgIds={}", orgIds);
|
||||||
for (String id : orgIds) {
|
for (String id : orgIds) {
|
||||||
Optional<List<String>> zones = replacementZoneIdsIfPolicyActive(id);
|
Optional<List<String>> zones = replacementZoneIdsIfPolicyActive(id);
|
||||||
if (zones.isPresent()) {
|
if (zones.isPresent()) {
|
||||||
|
|||||||
+2
@@ -667,6 +667,8 @@ public class ImgPersonServiceImpl extends AbstractImagStoreService
|
|||||||
int rawFloorCount = floorList.size();
|
int rawFloorCount = floorList.size();
|
||||||
this.logger.info("[DETAIL] personId={} listByImageId returned {} zones: {}",
|
this.logger.info("[DETAIL] personId={} listByImageId returned {} zones: {}",
|
||||||
param.getId(), rawFloorCount, floorList);
|
param.getId(), rawFloorCount, floorList);
|
||||||
|
this.logger.debug("[DETAIL-POLICY-CHECK] personId={} orgIds={} checking policy...",
|
||||||
|
param.getId(), result.getOrganizationIds());
|
||||||
Optional<List<String>> replacementFloors =
|
Optional<List<String>> replacementFloors =
|
||||||
this.tenantVisitorFloorPolicyService.replacementZoneIdsIfPolicyActive(
|
this.tenantVisitorFloorPolicyService.replacementZoneIdsIfPolicyActive(
|
||||||
result.getOrganizationIds());
|
result.getOrganizationIds());
|
||||||
|
|||||||
Reference in New Issue
Block a user