Instead of checking multiple times the log level store in Variable. Signed-off-by: Stephan Wendel <me@stephanwe.de>