mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 23:06:39 +01:00
Improve logging
This commit is contained in:
parent
9714b9e971
commit
00fc6b6b2b
1 changed files with 2 additions and 3 deletions
|
@ -24,12 +24,11 @@ public class Profiler {
|
|||
private static final Logger log = LoggerFactory.getLogger(Profiler.class);
|
||||
|
||||
public static void printSystemLoad(Logger log) {
|
||||
log.debug(printSystemLoadString());
|
||||
log.info(printSystemLoadString());
|
||||
}
|
||||
|
||||
public static String printSystemLoadString() {
|
||||
long used = getUsedMemoryInMB();
|
||||
return "System load: Memory (MB)): " + used + " / Nr. of threads: " + Thread.activeCount();
|
||||
return "System load: Memory (MB)): " + getUsedMemoryInMB() + " / Nr. of threads: " + Thread.activeCount();
|
||||
}
|
||||
|
||||
public static long getUsedMemoryInMB() {
|
||||
|
|
Loading…
Add table
Reference in a new issue