Log malloc errors with LOG_LEVEL_ERROR

This commit is contained in:
Pavel Roskin 2016-10-16 22:08:59 -07:00
parent 9ac592b218
commit 424cef464b
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ scp_connection_create(int sck)
if (0 == conn)
{
log_message(LOG_LEVEL_WARNING, "[connection:%d] connection create: malloc error", __LINE__);
log_message(LOG_LEVEL_ERROR, "[connection:%d] connection create: malloc error", __LINE__);
return 0;
}

View File

@ -42,7 +42,7 @@ scp_session_create()
if (0 == s)
{
log_message(LOG_LEVEL_WARNING, "[session:%d] session create: malloc error", __LINE__);
log_message(LOG_LEVEL_ERROR, "[session:%d] session create: malloc error", __LINE__);
return 0;
}