fixed logLevel bug