소스 검색

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;
 	}