mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-16 09:52:24 +00:00
General: Silence modules on (un)load.
Some (normally optional) modules created notices, warnings, and even errors in normal situations like (un)load. This cluttered the command-line interface (CLI) on start and while stopping gracefully. However, when an user went for the script './contrib/scripts/install_prereq', those modules get compiled-in because their prerequisites were met at compile time. Furthermore, because of ASTERISK_27475, the former talkative module 'res_curl' is built as side-effect. ASTERISK-27553 Change-Id: I9f105f46d72553994e820679bfde3478a551b281
This commit is contained in:
committed by
Richard Mudgett
parent
09f339bda5
commit
7e9781c25e
@@ -1648,9 +1648,6 @@ static int load_or_reload_lua_stuff(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (!res) {
|
||||
ast_log(LOG_NOTICE, "Lua PBX Switch loaded.\n");
|
||||
}
|
||||
lua_close(L);
|
||||
return res;
|
||||
}
|
||||
@@ -1660,7 +1657,6 @@ static int unload_module(void)
|
||||
ast_context_destroy(NULL, registrar);
|
||||
ast_unregister_switch(&lua_switch);
|
||||
lua_free_extensions();
|
||||
ast_log(LOG_NOTICE, "Lua PBX Switch unloaded.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user