Commit a55d172
committed
JAVA-2852: Log failure to get machine or process id at debug
The ObjectId class logs its failure to get either the machine identifer,
from NetworkInterface#getNetworkInterfaces, or the process
identifier, from JMX, at warning level, and includes the stack trace.
This is annoying for applications running on platforms where this occurs
(e.g. IBM JRE or Android's Dalvik), as it appears in the logs on every
application startup, there's no workaround, and the fallback behavior of
using SecureRandom is not a cause for concern.
This commit removes the stack trace from the log message and changes the
level from warn to debug1 parent a6ea587 commit a55d172
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
| 519 | + | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| 540 | + | |
540 | 541 | | |
541 | | - | |
| 542 | + | |
542 | 543 | | |
543 | 544 | | |
544 | 545 | | |
| |||
0 commit comments