瀏覽代碼

tm: use warn to print message if load_tm is not found

- in case of sl trying to import tm api for stateful reply, is not an
  error if tm is not found
- modules importing tm api print error message if the function returns
  error code and they need the tm
Daniel-Constantin Mierla 15 年之前
父節點
當前提交
5a25609343
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/tm/tm_load.h

+ 1 - 1
modules/tm/tm_load.h

@@ -143,7 +143,7 @@ static inline int load_tm_api(struct tm_binds* tmb)
 	load_tm = (load_tm_f)find_export("load_tm", NO_SCRIPT, 0);
 	
 	if (load_tm == NULL) {
-		LOG(L_ERR, "Cannot import load_tm function from tm module\n");
+		LOG(L_WARN, "Cannot import load_tm function from tm module\n");
 		return -1;
 	}