fixed C compilation error for setting log level