Exec()之后的PHP error_log

When calling the php function exec the output of the stderr is going the default error_log of apache. I have a server with many TYPO3 installations. And TYPO3 uses exec alot for image handling. My problem is that I get tons of

"/usr/local/bin/gm identify: Improper image header (typo3temp/pics/...."

or

"/usr/local/bin/gm convert: Unable to open file ..."

in the error_log. But there is no timestamp, no process ID, no process owner, no IP or anything else which could really help. Just the output.

Is there a way to add some useful information?