set log level from options
Merge master