diff options
author | Yossi Gottlieb <yossigo@gmail.com> | 2016-03-31 21:18:45 +0300 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-05-10 06:40:06 +0200 |
commit | e443ad9c29ab9ed23a965d129f3b0a2d0e8712d4 (patch) | |
tree | 8d0bb3ac626ce105e4d27d1638b54dbb66fe6805 /src | |
parent | 85919f80ed675dad7f2bee25018fec2833b8bbde (diff) | |
download | redis-e443ad9c29ab9ed23a965d129f3b0a2d0e8712d4.tar.gz |
Log loadmodule dlopen() errors.
Diffstat (limited to 'src')
-rw-r--r-- | src/module.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c index 7ea023241..dacb7ff8c 100644 --- a/src/module.c +++ b/src/module.c @@ -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, |