X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client_common.c;h=d5807e758d656df802647dd1039286770016ac29;hp=e5be430dfdb43021bfc9a01443593423cc5802b6;hb=70d421705c23f15188808f5435b03583bd613485;hpb=6bdac07456cb5872f824028912d1049883a9c21f diff --git a/client_common.c b/client_common.c index e5be430d..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,8 +364,9 @@ int client_open(int argc, char *argv[], struct client_task **ct_ptr) &ct->conf, ¶ms)) goto out; } - ret = 1; - PARA_INFO_LOG("loglevel: %d\n", ct->conf.loglevel_arg); + 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); PARA_NOTICE_LOG("connecting %s:%d\n", ct->conf.hostname_arg,