Try logging when drawing thre ruler.