removed SYSLOG_DEVLOG

This commit is contained in:
hyung-hwan 2023-06-29 16:33:53 +09:00
parent 139808dda7
commit b6aed953c1

View File

@ -123,7 +123,6 @@ typedef enum syslog_type_t syslog_type_t;
enum syslog_type_t enum syslog_type_t
{ {
SYSLOG_LOCAL, SYSLOG_LOCAL,
SYSLOG_DEVLOG,
SYSLOG_REMOTE, SYSLOG_REMOTE,
}; };
@ -4591,7 +4590,7 @@ static int fnc_openlog (hawk_rtx_t* rtx, const hawk_fnc_info_t* fi)
log_type = SYSLOG_REMOTE; log_type = SYSLOG_REMOTE;
actual_ident = ident + 9; actual_ident = ident + 9;
actual_ident_len = ident_len - 9; actual_ident_len = ident_len - 9;
slash = hawk_rfind_oochar_in_oochars(actual_ident, actual_ident_len, '/'); slash = hawk_rfind_oochar_in_oochars(actual_ident, actual_ident_len, '/'); // fine the last slash
if (!slash) if (!slash)
{ {
rx = set_error_on_sys_list(rtx, sys_list, HAWK_EINVAL, HAWK_T("invalid identifier '%js' with remote address"), ident); rx = set_error_on_sys_list(rtx, sys_list, HAWK_EINVAL, HAWK_T("invalid identifier '%js' with remote address"), ident);
@ -4609,12 +4608,6 @@ static int fnc_openlog (hawk_rtx_t* rtx, const hawk_fnc_info_t* fi)
/* local://syslog-identifier */ /* local://syslog-identifier */
actual_ident = ident + 8; actual_ident = ident + 8;
} }
else if (hawk_comp_oocstr_limited(ident, HAWK_T("devlog://"), 9, 0) == 0)
{
/* devlog://syslog-identifier */
actual_ident = ident + 9;
log_type = SYSLOG_DEVLOG;
}
else else
{ {
actual_ident = ident; actual_ident = ident;