]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - client_common.c
Fix para_client's --loglevel option.
[paraslash.git] / client_common.c
index e757a3a7a954bb6885a61613ce19c7158f96330f..d5807e758d656df802647dd1039286770016ac29 100644 (file)
@@ -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, &params))
                        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);