Add log message to dimensions calculation