Added $expression to logger::warning call