improved log debug level handling for mon_ami