Skip to content

Commit d13aae4

Browse files
author
kasemir
committed
Log using lambda
1 parent 98dae2b commit d13aae4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/pva/src/main/java/org/epics/pva/common/SearchRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ else if ("tcp".equals(protocol))
188188
}
189189
catch (Exception ex)
190190
{
191-
logger.log(Level.WARNING, "PVA Client " + from + " sent search #" + search.seq + " with invalid protocol", ex);
191+
logger.log(Level.WARNING, ex, () -> "PVA Client " + from + " sent search #" + search.seq + " with invalid protocol");
192192
return null;
193193
}
194194

@@ -226,7 +226,7 @@ else if ("tcp".equals(protocol))
226226
}
227227
catch (Exception ex)
228228
{
229-
logger.log(Level.WARNING, "PVA Client " + from + " sent damaged search #" + search.seq, ex);
229+
logger.log(Level.WARNING, ex, () -> "PVA Client " + from + " sent damaged search #" + search.seq);
230230
return null;
231231
}
232232
}

0 commit comments

Comments
 (0)