basho/lager — pull request #154 by howleysv (2013-06-20 14:54:31+00:00)
Title: Fixed log rotation hang when file:delete fails.

If there are no write permissions on the log folder, attempting to rotate the log files by renaming and deleting the log files will fail. This will cause an infinite loop inside lager_file_backend:write/4 if the log file's size limit has been reached.

This change modifies lager_util:rotate_logfile/2 to return the result of modifying the current log file so that the case where the rename/delete fails can be handled.