Преглед изворни кода

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