This repository has been archived by the owner on Jan 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from toptal/inf-print-logs-only-when-blocked
Print logs only when blocked or dump is saved
- Loading branch information
Showing
2 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/** | ||
* Copyright 2017 Michal Papis <[email protected]> | ||
* Copyright 2019 Alexey Shein <[email protected]> | ||
* | ||
* This file is part of JVM Monitoring Agent. | ||
* | ||
|
@@ -119,7 +120,9 @@ public void run() | |
lastSave = loopStartTime; | ||
msg += " - saved dump: "+dumpFileName; | ||
} | ||
log(msg); | ||
if (blockedToLong || savedDump) { | ||
log(msg); | ||
} | ||
} | ||
|
||
private void log(String msg) | ||
|