log: Fix log levels.
Signed-off-by: Gangadhar Sandrani <gangadhar.sandrani@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
eb86fd8cdf
Коммит
d6e6a453fc
@ -507,7 +507,7 @@ SSH_PACKET_CALLBACK(channel_rcv_data){
|
|||||||
}
|
}
|
||||||
len = ssh_string_len(str);
|
len = ssh_string_len(str);
|
||||||
|
|
||||||
SSH_LOG(SSH_LOG_PROTOCOL,
|
SSH_LOG(SSH_LOG_PACKET,
|
||||||
"Channel receiving %" PRIdS " bytes data in %d (local win=%d remote win=%d)",
|
"Channel receiving %" PRIdS " bytes data in %d (local win=%d remote win=%d)",
|
||||||
len,
|
len,
|
||||||
is_stderr,
|
is_stderr,
|
||||||
@ -535,7 +535,7 @@ SSH_PACKET_CALLBACK(channel_rcv_data){
|
|||||||
channel->local_window = 0; /* buggy remote */
|
channel->local_window = 0; /* buggy remote */
|
||||||
}
|
}
|
||||||
|
|
||||||
SSH_LOG(SSH_LOG_PROTOCOL,
|
SSH_LOG(SSH_LOG_PACKET,
|
||||||
"Channel windows are now (local win=%d remote win=%d)",
|
"Channel windows are now (local win=%d remote win=%d)",
|
||||||
channel->local_window,
|
channel->local_window,
|
||||||
channel->remote_window);
|
channel->remote_window);
|
||||||
@ -870,7 +870,7 @@ int channel_default_bufferize(ssh_channel channel, void *data, int len,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
SSH_LOG(SSH_LOG_RARE,
|
SSH_LOG(SSH_LOG_PACKET,
|
||||||
"placing %d bytes into channel buffer (stderr=%d)", len, is_stderr);
|
"placing %d bytes into channel buffer (stderr=%d)", len, is_stderr);
|
||||||
if (is_stderr == 0) {
|
if (is_stderr == 0) {
|
||||||
/* stdout */
|
/* stdout */
|
||||||
@ -1405,7 +1405,7 @@ static int channel_write_common(ssh_channel channel,
|
|||||||
return SSH_ERROR;
|
return SSH_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
SSH_LOG(SSH_LOG_RARE,
|
SSH_LOG(SSH_LOG_PACKET,
|
||||||
"channel_write wrote %ld bytes", (long int) effectivelen);
|
"channel_write wrote %ld bytes", (long int) effectivelen);
|
||||||
|
|
||||||
channel->remote_window -= effectivelen;
|
channel->remote_window -= effectivelen;
|
||||||
@ -2810,7 +2810,7 @@ int ssh_channel_read_timeout(ssh_channel channel,
|
|||||||
* We may have problem if the window is too small to accept as much data
|
* We may have problem if the window is too small to accept as much data
|
||||||
* as asked
|
* as asked
|
||||||
*/
|
*/
|
||||||
SSH_LOG(SSH_LOG_PROTOCOL,
|
SSH_LOG(SSH_LOG_PACKET,
|
||||||
"Read (%d) buffered : %d bytes. Window: %d",
|
"Read (%d) buffered : %d bytes. Window: %d",
|
||||||
count,
|
count,
|
||||||
buffer_get_rest_len(stdbuf),
|
buffer_get_rest_len(stdbuf),
|
||||||
|
@ -506,7 +506,12 @@ int ssh_connect(ssh_session session) {
|
|||||||
ssh_set_error(session, SSH_FATAL, "Couldn't apply options");
|
ssh_set_error(session, SSH_FATAL, "Couldn't apply options");
|
||||||
return SSH_ERROR;
|
return SSH_ERROR;
|
||||||
}
|
}
|
||||||
SSH_LOG(SSH_LOG_RARE,"libssh %s, using threading %s", ssh_copyright(), ssh_threads_get_type());
|
|
||||||
|
SSH_LOG(SSH_LOG_PROTOCOL,
|
||||||
|
"libssh %s, using threading %s",
|
||||||
|
ssh_copyright(),
|
||||||
|
ssh_threads_get_type());
|
||||||
|
|
||||||
session->ssh_connection_callback = ssh_client_connection_callback;
|
session->ssh_connection_callback = ssh_client_connection_callback;
|
||||||
session->session_state=SSH_SESSION_STATE_CONNECTING;
|
session->session_state=SSH_SESSION_STATE_CONNECTING;
|
||||||
ssh_socket_set_callbacks(session->socket,&session->socket_callbacks);
|
ssh_socket_set_callbacks(session->socket,&session->socket_callbacks);
|
||||||
|
@ -383,7 +383,7 @@ int ssh_config_parse_file(ssh_session session, const char *filename) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
SSH_LOG(SSH_LOG_RARE, "Reading configuration data from %s", filename);
|
SSH_LOG(SSH_LOG_PACKET, "Reading configuration data from %s", filename);
|
||||||
|
|
||||||
parsing = 1;
|
parsing = 1;
|
||||||
while (fgets(line, sizeof(line), f)) {
|
while (fgets(line, sizeof(line), f)) {
|
||||||
|
@ -343,7 +343,7 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user)
|
|||||||
|
|
||||||
return processed;
|
return processed;
|
||||||
case PACKET_STATE_PROCESSING:
|
case PACKET_STATE_PROCESSING:
|
||||||
SSH_LOG(SSH_LOG_RARE, "Nested packet processing. Delaying.");
|
SSH_LOG(SSH_LOG_PACKET, "Nested packet processing. Delaying.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@ int ssh_packet_socket_callback1(const void *data, size_t receivedlen, void *user
|
|||||||
|
|
||||||
return processed;
|
return processed;
|
||||||
case PACKET_STATE_PROCESSING:
|
case PACKET_STATE_PROCESSING:
|
||||||
SSH_LOG(SSH_LOG_RARE, "Nested packet processing. Delaying.");
|
SSH_LOG(SSH_LOG_PACKET, "Nested packet processing. Delaying.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user