fix log_level calculation bug
on lenny, AS_ECHO doesn't work