diff options
| author | Vikas Gorur <vikas@gluster.com> | 2009-06-09 05:08:59 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2009-06-11 07:53:45 -0700 | 
| commit | 180cfc0c4b6b9a46da35a536a565f010babfa4a7 (patch) | |
| tree | cd345829e51c7f0be3aa2e6b4be6b98be0ccb0e5 /glusterfsd/src | |
| parent | 181ab58c6adeda6f99eb9330ed8ce720ab0f2818 (diff) | |
Initialize central logging in glusterfs main().
Modified from patch 522 (made a function extern) -- Avati
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'glusterfsd/src')
| -rw-r--r-- | glusterfsd/src/glusterfsd.c | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 23b180cc937..0afbe5c972f 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -65,6 +65,11 @@  #include <fnmatch.h> +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;  | 
