Skip to content

Commit

Permalink
dcache-core: fix psu logging
Browse files Browse the repository at this point in the history
Motivation:
Modification:

We observed faulty logging from poolmanager's psu:
`this IP address   belongs to {} in uGroup {}` ...

Result:

Logging properly includes intended fields.

Target: master, 9.2
Requires-notes: no
Requires-book: no
Patch: https://rb.dcache.org/r/14209/
Acked-by: Tigran Mkrtchyan
  • Loading branch information
lemora committed Jan 31, 2024
1 parent 82cd451 commit 481408f
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -662,8 +662,7 @@ public PoolPreferenceLevel[] match(DirectionType type, String netUnitName,
.stream()
.map(UGroup::getName).findFirst().get();

LOGGER.debug(
"this IP address belongs to {} in uGroup {} " + netUnitName + netUnitGroup);
LOGGER.debug("this IP address belongs to {} in uGroup {} ", netUnitName, netUnitGroup);


} catch (UnknownHostException e) {
Expand Down Expand Up @@ -1158,7 +1157,7 @@ public void setAllPoolsActive(String mode) {
break;
default:
throw new IllegalArgumentException(
"Syntax error," + " no such mode: " + mode);
"Syntax error, no such mode: " + mode);
}
} finally {
wunlock();
Expand Down

0 comments on commit 481408f

Please sign in to comment.