# remove log messages from tests during builds

**URL:** <https://talk.openmrs.org/t/remove-log-messages-from-tests-during-builds/11190>\
**Category:** Development\
**Tags:** build, unit-tests\
**Created:** [April 25, 2017, 6:07pm UTC](https://talk.openmrs.org/t/remove-log-messages-from-tests-during-builds/11190 "2017-04-25T18:07:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![teleivo](https://talk.openmrs.org/user_avatar/talk.openmrs.org/teleivo/32/2015_2.png) [@teleivo](https://talk.openmrs.org/u/teleivo)\
**Post date:** [April 25, 2017, 6:07pm UTC](https://talk.openmrs.org/t/remove-log-messages-from-tests-during-builds/11190/1 "2017-04-25T18:07:46Z")

</div>

Hi,

have you noticed that our tests spit out a lot of log messages which clutter the build for example on travis CI?

I am in favor of getting rid of them by probably configuring the log config file. Every dev can change the setting locally if needed.

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 26, 2017, 1:49pm UTC](https://talk.openmrs.org/t/remove-log-messages-from-tests-during-builds/11190/2 "2017-04-26T13:49:34Z")

</div>

@teleivo that looks exciting! Do you have a pull request for us to see it in action? 😄

---

<div class="post-metadata">

**Author:** ![teleivo](https://talk.openmrs.org/user_avatar/talk.openmrs.org/teleivo/32/2015_2.png) [@teleivo](https://talk.openmrs.org/u/teleivo)\
**Post date:** [April 29, 2017, 6:47am UTC](https://talk.openmrs.org/t/remove-log-messages-from-tests-during-builds/11190/3 "2017-04-29T06:47:01Z")

</div>

will do 🙂 its on my perpetuum todo list, my forecast says the sun will still need to rise 30 times 😆

---

<div class="post-metadata">

**Author:** ![teleivo](https://talk.openmrs.org/user_avatar/talk.openmrs.org/teleivo/32/2015_2.png) [@teleivo](https://talk.openmrs.org/u/teleivo)\
**Post date:** [May 6, 2017, 11:56am UTC](https://talk.openmrs.org/t/remove-log-messages-from-tests-during-builds/11190/4 "2017-05-06T11:56:11Z")

</div>

commited a little change to remove log4j logging during tests at

> <https://issues.openmrs.org/browse/TRUNK-5163>

there are still entries like

`INFO 5/6/17 11:53 AM:liquibase: Creating database history table with name: LIQUIBASECHANGELOG`

in the build about liquibase changesets coming from Database1\_9\_7UpgradeIT, would you like them to be removed as well?

If so, anyone knows how they are printed? Dont think they come from log4j

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [May 7, 2017, 9:11pm UTC](https://talk.openmrs.org/t/remove-log-messages-from-tests-during-builds/11190/5 "2017-05-07T21:11:48Z")

</div>

Did you try adding this?

```
<dependency>
	    <groupId>com.mattbertolini</groupId>
	    <artifactId>liquibase-slf4j</artifactId>
	    <version>2.0.0</version>
	    <scope>test</scope>
</dependency>
```

---

<div class="post-metadata">

**Author:** ![teleivo](https://talk.openmrs.org/user_avatar/talk.openmrs.org/teleivo/32/2015_2.png) [@teleivo](https://talk.openmrs.org/u/teleivo)\
**Post date:** [May 9, 2017, 6:26pm UTC](https://talk.openmrs.org/t/remove-log-messages-from-tests-during-builds/11190/6 "2017-05-09T18:26:09Z")

</div>

> [@dkayiwa](#):
>
> liquibase-slf4j

thanks for the tip @dkayiwa! So awkward that this is needed 😒 At the moment I dont feel like adding this dependency. I mean I am trying to get rid of old, unmaintained dependencies.
