Better logging. Fix bug with empty buffers in Sublime Text 2