jimmynicol/image-resizer

Please add additional logging when using EXTERNAL_SOURCE_*

Opened this issue · 1 comments

Hello,

I've added an EXTERNAL_SOURCE_* which works only a few times, but fails on reload (original source responds with 404, although accessing it from browser works).
Trying to figure out what's happening.

The logging only mentions now
GET /ewikipedia-h10/en/7/70/Example.png?v=123 200

Would you please add another GET line for the original source, e.g.
GET original https://upload.wikimedia.org/wikipedia/en/7/70/Example.png?v=123
and errors?

Thanks

Actually the error is already being logged.

See:

if (response.statusCode !== 200) {
_this.image.error = new Error('Error ' + response.statusCode + ':');
}

and
if(_this.image.isError()) {
_this.image.error.message += Buffer.concat(bufs);