From 180cfc0c4b6b9a46da35a536a565f010babfa4a7 Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Tue, 9 Jun 2009 05:08:59 +0000 Subject: Initialize central logging in glusterfs main(). Modified from patch 522 (made a function extern) -- Avati Signed-off-by: Anand V. Avati --- glusterfsd/src/glusterfsd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'glusterfsd') diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 23b180cc..0afbe5c9 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -65,6 +65,11 @@ #include +extern int +gf_log_central_init (glusterfs_ctx_t *ctx, const char *remote_host, + const char *transport, uint32_t remote_port); + + /* using argp for command line parsing */ static char gf_doc[] = ""; static char argp_doc[] = "--volfile-server=SERVER [MOUNT-POINT]\n" \ @@ -1210,6 +1215,11 @@ main (int argc, char *argv[]) gf_log ("glusterfs", GF_LOG_NORMAL, "Successfully started"); + if (cmd_args->volfile_server) { + gf_log_central_init (ctx, cmd_args->volfile_server, + "socket", cmd_args->volfile_server_port); + } + event_dispatch (ctx->event_pool); return 0; -- cgit