Search code examples
liferay

Disable minifier errors logging


There's lots of people looking for how to disable the minifiers in Liferay, but our problem is sightly different: how do we disable the minifiers dumping the contents of the files to the log? We don't really care if some file can't be minified, but when it happens, it writes the files again and again on each visit to the log, generating gigabyte-sized log files.


Solution

  • I had the same problem in a liferay 6.2 portal and the resolution is quite simple.

    The log about minifier issues is generated by com.liferay.portal.util.MinifierUtil class with ERROR level.

    Add an entry to specify for that class an upper lever like FATAL.

    Server administration