-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only log hikari errors. #373
Only log hikari errors. #373
Conversation
* removes noise from the main DROID log in normal operation.
Hi @nishihatapalmer, TIA, |
Problem Solution Testing Then, delete or rename the .droid6 folder under your home directory, and run this version of DROID This will force DROID to recreate the folder and files, putting in the new log4j property file there. Each time a profile is created, you should no longer see HikariPool messages in the DROID log. |
Do you reckon I've gone too far back? I checked the console as well as the log file under .droid6/logs and could not find the messages. Could you point me in the right direction? |
I don't know when this issue surfaced, but it's in 6.5-SNAPSHOT.
You need a log4j properties file from any old version. If you've run 6.4
then you will have the old log4j file.
If you run the latest master, you should see HikariPool log entries.
If you apply this PR (which bundles an updated log4j file), you should
still see the HikariPool entries (because you are still using the old log4j
file in the .droid6 folder).
If you then rename or delete the .droid6 folder and re-run DROID with this
PR, the HikariPool entries should be gone (because DROID has recreated the
.droid6 folder and put the updated log4j property file in it).
…On Fri, 7 Feb 2020 at 16:49, sparkhi ***@***.***> wrote:
- I checked out the revision corresponding to 'prepare release
droid-6.4'.
- I deleted the .droid6 folder
- Built locally
- Ran the local version
I did not see any specific message related to hikaripool,
Do you reckon I've gone too far back? I checked the console as well as the
log file under .droid6/logs and could not find the messages. Could you
point me in the right direction?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#373?email_source=notifications&email_token=ABBY4JB64CCRJYJSJVC2RBDRBWGK7A5CNFSM4KOLV25KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELDW73Y#issuecomment-583495663>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABBY4JCQTF74OP3WXGTT2V3RBWGK7ANCNFSM4KOLV25A>
.
|
Essentially, all this PR does is to ensure log entries from Hikari only appear at an ERROR level, the same as we do for apache and some others. To test, you need the log4j property file from the latest version of DROID, and the one from this PR. If you run the 6.5-SNAPSHOT master of DROID with a standard log4j property file in the .droid6 folder, you should see HikariPool entries. If you replace the log4j property file with the one from this PR, then the HikariPool entries should disappear. |
It does raise the issue of what we do with things like log configuration updates to DROID. Anyone who's had any previous version installed simply won't get these updates, unless they blow away their .droid6 folder. Should DROID check for differences and put in the new version if it's not there with a warning message? Or rename the old file and put the new one in? |
Note: you won't see these changes unless you get rid of your .droid6 folder. If you have an existing installation, DROID will continue to use the previous log4j2.properties file already installed.