diff --git a/htdocs/core/class/html.formsms.class.php b/htdocs/core/class/html.formsms.class.php
index ffa065d2470..82bb4c6ff5d 100755
--- a/htdocs/core/class/html.formsms.class.php
+++ b/htdocs/core/class/html.formsms.class.php
@@ -186,7 +186,7 @@ function limitChars(textarea, limit, infodiv)
}
else
{
- dol_syslog("Warning: The SMS sending method has not been defined into MAIN_SMS_SENDMODE");
+ dol_syslog("Warning: The SMS sending method has not been defined into MAIN_SMS_SENDMODE", LOG_WARNING);
$resultsender[0]->number=$this->fromsms;
}
if (sizeof($resultsender) > 0)