Trime message on api_log

Limit length to size of field