comparison cli-main.c @ 1894:62e4baa059c3

changed TRACE to DEBUG1 for dbclient
author HansH111 <hans@atbas.org>
date Sat, 19 Mar 2022 09:02:55 +0000
parents 1d86a58fb52d
children
comparison
equal deleted inserted replaced
1893:180e580778df 1894:62e4baa059c3
63 if (opts.usingsyslog) { 63 if (opts.usingsyslog) {
64 startsyslog("dbclient"); 64 startsyslog("dbclient");
65 } 65 }
66 #endif 66 #endif
67 67
68 TRACE(("user='%s' host='%s' port='%s' bind_address='%s' bind_port='%s'", cli_opts.username, 68 if (cli_opts.bind_address) {
69 cli_opts.remotehost, cli_opts.remoteport, cli_opts.bind_address, cli_opts.bind_port)) 69 DEBUG1(("connect to: user=%s host=%s/%s bind_address=%s:%s", cli_opts.username,
70 cli_opts.remotehost, cli_opts.remoteport, cli_opts.bind_address, cli_opts.bind_port))
71 } else {
72 DEBUG1(("connect to: user=%s host=%s/%s",cli_opts.username,cli_opts.remotehost,cli_opts.remoteport))
73 }
70 74
71 if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) { 75 if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) {
72 dropbear_exit("signal() error"); 76 dropbear_exit("signal() error");
73 } 77 }
74 78
133 ex_cmd = m_malloc(ex_cmdlen); 137 ex_cmd = m_malloc(ex_cmdlen);
134 snprintf(ex_cmd, ex_cmdlen, "exec %s", cli_opts.proxycmd); 138 snprintf(ex_cmd, ex_cmdlen, "exec %s", cli_opts.proxycmd);
135 139
136 ret = spawn_command(exec_proxy_cmd, ex_cmd, 140 ret = spawn_command(exec_proxy_cmd, ex_cmd,
137 sock_out, sock_in, NULL, pid_out); 141 sock_out, sock_in, NULL, pid_out);
142 DEBUG1(("cmd: %s pid=%d", ex_cmd,*pid_out))
138 m_free(ex_cmd); 143 m_free(ex_cmd);
139 if (ret == DROPBEAR_FAILURE) { 144 if (ret == DROPBEAR_FAILURE) {
140 dropbear_exit("Failed running proxy command"); 145 dropbear_exit("Failed running proxy command");
141 *sock_in = *sock_out = -1; 146 *sock_in = *sock_out = -1;
142 } 147 }