fix type of getLoglevel