X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client_common.c;h=d5807e758d656df802647dd1039286770016ac29;hp=e757a3a7a954bb6885a61613ce19c7158f96330f;hb=82ec559332572814f76a8db3ed6751792687570d;hpb=3cfb1d880ebf22546486316cb74cce21f007eb07 diff --git a/client_common.c b/client_common.c index e757a3a7..d5807e75 100644 --- a/client_common.c +++ b/client_common.c @@ -319,7 +319,8 @@ err_out: * * \return Standard. */ -int client_open(int argc, char *argv[], struct client_task **ct_ptr) +int client_open(int argc, char *argv[], struct client_task **ct_ptr, + int *loglevel) { char *home = para_homedir(); struct stat statbuf; @@ -363,7 +364,8 @@ int client_open(int argc, char *argv[], struct client_task **ct_ptr) &ct->conf, ¶ms)) goto out; } - ret = 1; + if (loglevel) + *loglevel = get_loglevel_by_name(ct->conf.loglevel_arg); PARA_INFO_LOG("loglevel: %s\n", ct->conf.loglevel_arg); PARA_INFO_LOG("config_file: %s\n", ct->config_file); PARA_INFO_LOG("key_file: %s\n", ct->key_file);