Fix getopt
Log level to filter logs