Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reject invalid sizes #100

Merged
merged 2 commits into from Feb 8, 2015
Merged

Reject invalid sizes #100

merged 2 commits into from Feb 8, 2015

Conversation

nitriques
Copy link
Member

I came across lots of logs regarding jit image trying to use 0 x 0 has their dimensions. Each time it happend, 13 log entries where recreated!!! This fix now exit early in that case, to prevent poluting the log.

Should we still log it ? (but only once!)

I came across lots of logs regarding jit image trying to use 0 x 0 has their dimensions. Each time it happend, 13 log entries where recreated!!! This fix now exit early in that case, to prevent poluting the log.
@brendo
Copy link
Member

brendo commented Jan 12, 2015

Should we still log it ? (but only once!)

Yeah, it'd be nice to log this so you're still aware that it's occurring. With referrer would be ideal.

@nitriques
Copy link
Member Author

Perfect.

@nitriques nitriques self-assigned this Jan 13, 2015
The invalid size error now logs a message in Symphony's log.
The referrer is added in the log message, if present.
@nitriques
Copy link
Member Author

There you go @brendo, I've added the log message.

Also, I wonder what's best for initializing the log: as I did ? Or like this ?

brendo added a commit that referenced this pull request Feb 8, 2015
Reject invalid size requests.
@brendo brendo merged commit a95674e into symphonycms:integration Feb 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants