fix error in setLogLevel