refactoring: log_event(), is_format_valid()

This commit is contained in:
Serghey Rodin 2016-06-24 16:31:43 +03:00
commit a61a6e979e
52 changed files with 582 additions and 1170 deletions

View file

@ -43,9 +43,7 @@ get_domain_values 'web'
# Checking config
config="$HOMEDIR/$user/conf/web/$STATS.$domain.conf"
if [ ! -e "$config" ]; then
echo "Error: Parsing error"
log_event "$E_PARSING" "$ARGUMENTS"
exit $E_PARSING
check_result $E_NOTEXISTS "$config doesn't exist"
fi
# Checking statistics directory