diff --git a/client/csync_client.c b/client/csync_client.c index 658768ce0..4c80acb11 100644 --- a/client/csync_client.c +++ b/client/csync_client.c @@ -206,6 +206,16 @@ int main(int argc, char **argv) { print_help(); } + if (arguments.debug_level) { + csync_set_log_level(arguments.debug_level); + } + + if (csync_create(&csync, argv[optind], argv[optind+1]) < 0) { + fprintf(stderr, "csync_create: failed\n"); + exit(1); + } + + /* * Protect password from ps listing * Find and replace :password@ by :********@ @@ -223,15 +233,6 @@ int main(int argc, char **argv) { } } - if (arguments.debug_level) { - csync_set_log_level(arguments.debug_level); - } - - if (csync_create(&csync, argv[optind], argv[optind+1]) < 0) { - fprintf(stderr, "csync_create: failed\n"); - exit(1); - } - csync_set_auth_callback(csync, csync_getpass); if (arguments.disable_statedb) {