Skip to content

Commit

Permalink
modules/presence: print error log only for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiusas committed Mar 1, 2016
1 parent 6c99004 commit 9e8654f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/presence/notify.c
Expand Up @@ -1098,7 +1098,8 @@ str* get_p_notify_body(str pres_uri, pres_ev_t* event, str* etag, str* publ_body

if(row_vals[body_col].val.string_val== NULL)
{
LM_ERR("NULL notify body record\n");
if (event->mandatory_body)
LM_ERR("NULL notify body record\n");
goto error;
}
len= strlen(row_vals[body_col].val.string_val);
Expand Down

0 comments on commit 9e8654f

Please sign in to comment.