mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 00:50:50 +00:00
Log loadmodule dlopen() errors.
This commit is contained in:
parent
85919f80ed
commit
e443ad9c29
@ -1273,7 +1273,10 @@ int moduleLoad(const char *path) {
|
||||
RedisModuleCtx ctx = REDISMODULE_CTX_INIT;
|
||||
|
||||
handle = dlopen(path,RTLD_NOW|RTLD_LOCAL);
|
||||
if (handle == NULL) return C_ERR;
|
||||
if (handle == NULL) {
|
||||
serverLog(LL_WARNING, "Module %s failed to load: %s", path, dlerror());
|
||||
return C_ERR;
|
||||
}
|
||||
onload = (int (*)(void *))(unsigned long) dlsym(handle,"RedisModule_OnLoad");
|
||||
if (onload == NULL) {
|
||||
serverLog(LL_WARNING,
|
||||
|
Loading…
x
Reference in New Issue
Block a user