Skip to content

Commit fe2e7ce

Browse files
odanoburuswilly22
andauthored
* log redisgraph version (#1567)
When pulling container image tagged as `latest` or `edge` I sometimes don't know which version I'm running, and it would be much faster to find out if the information was displayed at startup. This patch logs this information. Co-authored-by: Roi Lipman <[email protected]>
1 parent 611a0f0 commit fe2e7ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/module.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc)
8888
return REDISMODULE_ERR;
8989
}
9090

91+
RedisModule_Log(ctx, "notice", "Starting up RedisGraph version %d.%d.%d.",
92+
REDISGRAPH_VERSION_MAJOR, REDISGRAPH_VERSION_MINOR, REDISGRAPH_VERSION_PATCH);
93+
9194
Proc_Register(); // Register procedures.
9295
AR_RegisterFuncs(); // Register arithmetic functions.
9396
Cron_Start(); // Start CRON

0 commit comments

Comments
 (0)