# mysqld adds ".err" if there is no extension on the --log-err
# argument; must match that here, or mysqld_safe will write to a
# different log file than mysqld
# mysqld does not add ".err" to "--log-error=foo."; it considers a
# trailing "." as an extension
if expr"$err_log" : '.*\.[^/]*$'> /dev/null
then
:
else
err_log="$err_log".err
fi
case"$err_log"in
/*);;
*)err_log="$DATADIR/$err_log";;
esac
else
err_log=$DATADIR/`@HOSTNAME@`.err
fi
append_arg_to_args "--log-error=$err_log"
if[$syslog-eq 1 ]
then
# User explicitly asked for syslog, so warn that it isn't used
log_error "Can't log to error log and syslog at the same time. Remove all --log-error configuration options for --syslog to take effect. Logging to '$err_log'."
fi
# Don't use syslog since syslog and error log don't mix well