include version in startup message

This commit is contained in:
Jan-Piet Mens
2016-02-18 13:07:35 +01:00
parent 84ee56aa19
commit ec92bb1683
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ ocat: ocat.o $(OTR_OBJS)
$(OTR_OBJS): config.mk Makefile
recorder.o: recorder.c storage.h util.h Makefile geo.h udata.h json.h http.h gcache.h config.mk hooks.h base64.h
recorder.o: recorder.c storage.h util.h Makefile geo.h udata.h json.h http.h gcache.h config.mk hooks.h base64.h version.h
geo.o: geo.h geo.c udata.h
geohash.o: geohash.h geohash.c udata.h
base64.o: base64.h base64.c
+2 -1
View File
@@ -50,6 +50,7 @@
#if WITH_ENCRYPT
# include <sodium.h>
#endif
#include "version.h"
#define SSL_VERIFY_PEER (1)
@@ -1579,7 +1580,7 @@ int main(int argc, char **argv)
udata.mgserver = mg_create_server(ud, ev_handler);
}
#endif
olog(LOG_DEBUG, "starting with STORAGEDIR=%s", STORAGEDIR);
olog(LOG_DEBUG, "version %s starting with STORAGEDIR=%s", VERSION, STORAGEDIR);
if (ud->revgeo == TRUE) {
#ifdef WITH_LMDB