Remove unused define.

The LOG_ERROR constant is no longer used by the logging system. It is an
unused relic from 1.x. Additionally changing the value of ERROR to not
be error creates counterintuitive code.

Fixes #3762
Merge remote-tracking branch 'origin/2.4' into 2.4