2
===================================================================
6
* In interactive mode (with pseudo tty) display a message indicating
7
* that the connection has been closed.
9
- if (have_pty && options.log_level != SYSLOG_LEVEL_QUIET) {
10
+ if (have_pty && options.log_level > SYSLOG_LEVEL_QUIET) {
11
snprintf(buf, sizeof buf,
12
"Connection to %.64s closed.\r\n", host);
13
buffer_append(&stderr_buffer, buf, strlen(buf));
15
===================================================================
22
+ { "SILENT", SYSLOG_LEVEL_SILENT },
23
{ "QUIET", SYSLOG_LEVEL_QUIET },
24
{ "FATAL", SYSLOG_LEVEL_FATAL },
25
{ "ERROR", SYSLOG_LEVEL_ERROR },
30
+ case SYSLOG_LEVEL_SILENT:
31
case SYSLOG_LEVEL_QUIET:
32
case SYSLOG_LEVEL_FATAL:
33
case SYSLOG_LEVEL_ERROR:
35
===================================================================
42
+ SYSLOG_LEVEL_SILENT,
47
===================================================================
52
debug2("Received exit status from master %d", exitval[0]);
54
- if (tty_flag && options.log_level != SYSLOG_LEVEL_QUIET)
55
+ if (tty_flag && options.log_level > SYSLOG_LEVEL_QUIET)
56
fprintf(stderr, "Shared connection to %s closed.\r\n", host);
59
Index: b/sftp-server.8
60
===================================================================
64
Specifies which messages will be logged by
66
The possible values are:
67
-QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3.
68
+SILENT, QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3.
69
INFO and VERBOSE log transactions that
71
performs on behalf of the client.
73
===================================================================
79
Causes most warning and diagnostic messages to be suppressed.
80
+Only fatal errors are displayed.
83
+is given then even fatal errors are suppressed, except for those produced
84
+due solely to bad arguments.
87
.Oo Ar bind_address : Oc
89
===================================================================
96
- options.log_level = SYSLOG_LEVEL_QUIET;
97
+ if (options.log_level == SYSLOG_LEVEL_QUIET) {
98
+ options.log_level = SYSLOG_LEVEL_SILENT;
100
+ else if (options.log_level != SYSLOG_LEVEL_SILENT) {
101
+ options.log_level = SYSLOG_LEVEL_QUIET;
105
if (optarg[0] == '^' && optarg[2] == 0 &&
108
/* Do not allocate a tty if stdin is not a tty. */
109
if ((!isatty(fileno(stdin)) || stdin_null_flag) && !force_tty_flag) {
111
+ if (tty_flag && options.log_level > SYSLOG_LEVEL_QUIET)
112
logit("Pseudo-terminal will not be allocated because "
113
"stdin is not a terminal.");
115
Index: b/ssh_config.5
116
===================================================================
120
Gives the verbosity level that is used when logging messages from
122
The possible values are:
123
-QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3.
124
+SILENT, QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3.
126
DEBUG and DEBUG1 are equivalent.
127
DEBUG2 and DEBUG3 each specify higher levels of verbose output.
129
===================================================================
133
option override command-line ports.
136
-Nothing is sent to the system log.
137
+Only fatal errors are sent to the system log.
138
Normally the beginning,
139
authentication, and termination of each connection is logged.
142
+is given then nothing is sent to the system log.
145
Check the validity of the configuration file, output the effective configuration
147
===================================================================
150
@@ -1355,7 +1355,12 @@
154
- options.log_level = SYSLOG_LEVEL_QUIET;
155
+ if (options.log_level == SYSLOG_LEVEL_QUIET) {
156
+ options.log_level = SYSLOG_LEVEL_SILENT;
158
+ else if (options.log_level != SYSLOG_LEVEL_SILENT) {
159
+ options.log_level = SYSLOG_LEVEL_QUIET;
163
options.server_key_bits = (int)strtonum(optarg, 256,
164
Index: b/sshd_config.5
165
===================================================================
169
Gives the verbosity level that is used when logging messages from
171
The possible values are:
172
-QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3.
173
+SILENT, QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3.
175
DEBUG and DEBUG1 are equivalent.
176
DEBUG2 and DEBUG3 each specify higher levels of debugging output.