lesscss-servlet
lesscss-servlet copied to clipboard
buggy when cache == false, no exception logging
Looks like the servlet is "swallowing" some exceptions. Please use LOG4J or something to log all exceptions you catch. Also, in development mode, people will use cache == false. It seems like this is not implemented properly (resources.put()) is always performed, even if cache == false).
Looks like the servlet is "swallowing" some exceptions.
Especially annoying when a lesscss file contains syntax errors. Nothing is logged then, and the servlet EITHER sends 404 OR a stale version of the "compilation" result.
I noticed it returning a stale compiled version when exceptions are thrown. It will throw an exception one request, then return the last successfully compiled version the next, inconsistently.