better error messages for logfile.  And use them in rlm_detail