Issue #283: log bad API calls to logs/api-errors.log with Monolog