diff --git a/src/box/box.cc b/src/box/box.cc index 3ed2a4a447da468063916d12defc75680ac78632..b6c22b081992b09b07314f670afb7b4eddb9247f 100644 --- a/src/box/box.cc +++ b/src/box/box.cc @@ -362,11 +362,6 @@ box_check_say() diag_last_error(diag_get())->errmsg); } - if (say_check_init_str(log) == -1) { - - diag_raise(); - } - if (type == SAY_LOGGER_SYSLOG) { struct say_syslog_opts opts; if (say_parse_syslog_opts(log, &opts) < 0) { diff --git a/src/say.c b/src/say.c index 287ec500006427c67ec5b2f2ff7d60e4df44197d..ac221dd19de5e576a93761435b5492627e3da3b0 100644 --- a/src/say.c +++ b/src/say.c @@ -960,24 +960,6 @@ write_to_syslog(struct log *log, int total) * Init string parser(s) */ -int -say_check_init_str(const char *str) -{ - enum say_logger_type type; - if (say_parse_logger_type(&str, &type)) { - diag_set(IllegalParams, logger_syntax_reminder); - return -1; - } - if (type == SAY_LOGGER_SYSLOG) { - struct say_syslog_opts opts; - - if (say_parse_syslog_opts(str, &opts) < 0) - return -1; - say_free_syslog_opts(&opts); - } - return 0; -} - /** * @retval string after prefix if a prefix is found, * *str also is advanced to the prefix diff --git a/src/say.h b/src/say.h index f4c6b8eb92ec49ad963ffc4f512aaeec326311f6..2c2395fe0e49e6613e6996d855fc5a75b6e8c7a9 100644 --- a/src/say.h +++ b/src/say.h @@ -372,14 +372,6 @@ CFORMAT(printf, 5, 0) extern sayfunc_t _say; #define log_say_syserror(log, format, ...) \ log_say_level(log, S_SYSERROR, strerror(errno), format, ##__VA_ARGS__) -/** - * validates logger init string; - * @returns 0 if validation passed or -1 - * with an error message written to diag - */ -int -say_check_init_str(const char *str); - /* internals, for unit testing */ /**