Displaying 6 results from an estimated 6 matches for "syslog_level_quiet".
2001 Jan 05
3
subject: ssh non-intuitive logging setting. (priority names)
...es defined in
ssh.h.
(You can see from the snippet from log.c that
DEBUG and DEBUG1 have the same effect by the way.)
log.c:
static struct {
const char *name;
LogLevel val;
} log_levels[] =
{
{ "QUIET", SYSLOG_LEVEL_QUIET },
{ "FATAL", SYSLOG_LEVEL_FATAL },
{ "ERROR", SYSLOG_LEVEL_ERROR },
{ "INFO", SYSLOG_LEVEL_INFO },
{ "VERBOSE", SYSLOG_LEVEL_VERBOSE },
{ "DEBUG",...
2001 Jul 05
1
OpenSSH Logging Madness
...*******************
Index: 2_9_p2_w_gss_krb5_named_keys.6/log.h
--- 2_9_p2_w_gss_krb5_named_keys.6/log.h Thu, 03 May 2001 16:12:13 -0400 jd (OpenSSH/j/5_log.h 1.1 644)
+++ 2_9_p2_w_gss_krb5_named_keys.6(w)/log.h Thu, 05 Jul 2001 18:41:32 -0400 willian (OpenSSH/j/5_log.h 1.1 644)
@@ -39,6 +39,7 @@
SYSLOG_LEVEL_QUIET,
SYSLOG_LEVEL_FATAL,
SYSLOG_LEVEL_ERROR,
+ SYSLOG_LEVEL_NOTICE,
SYSLOG_LEVEL_INFO,
SYSLOG_LEVEL_VERBOSE,
SYSLOG_LEVEL_DEBUG1,
@@ -58,6 +59,7 @@
/* Output a message to syslog or stderr */
void fatal(const char *fmt,...) __attribute__((format(printf, 1, 2)));
void error(const char...
2001 Aug 23
1
-q option doesn't do what it says in the man page?
Hi,
Man page:
-q Quiet mode. Causes all warning and diagnostic messages
to be suppressed. Only fatal errors are displayed.
But in log.h:
typedef enum {
SYSLOG_LEVEL_QUIET,
SYSLOG_LEVEL_FATAL,
so in log.c:
void
do_log(LogLevel level, const char *fmt, va_list args)
{
char msgbuf[MSGBUFSIZ];
char fmtbuf[MSGBUFSIZ];
char *txt = NULL;
int pri = LOG_INFO;
if (level > log_level)
return;
This means that even fatal errors will be ignored if the -q flag...
2006 Aug 24
6
[Bug 1221] Banner only suppressed at log level = QUIET (used to be at log level < INFO)
...rkus@
The relevant code is in sshconnect2.c:
input_userauth_banner(int type, u_int32_t seq, void *ctxt)
{
char *msg, *lang;
debug3("input_userauth_banner");
msg = packet_get_string(NULL);
lang = packet_get_string(NULL);
if (options.log_level > SYSLOG_LEVEL_QUIET)
fprintf(stderr, "%s", msg);
xfree(msg);
xfree(lang);
}
Was this change in the log level at which the banner prints
intentional?
When ssh is used inside scripts, or forked inside programs, it is (or
rather, was) very nice to be able to suppress the banner...
2008 Jan 07
7
[Bug 1427] New: scp -q behavior different than documented
https://bugzilla.mindrot.org/show_bug.cgi?id=1427
Summary: scp -q behavior different than documented
Classification: Unclassified
Product: Portable OpenSSH
Version: 4.7p1
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P3
Component: scp
AssignedTo: bitbucket at mindrot.org
2010 Jan 14
1
ssh(1) multiplexing rewrite
...debug2("Control master terminated unexpectedly");
- exitval[0] = 255;
+ exitval = 255;
} else
- debug2("Received exit status from master %d", exitval[0]);
+ debug2("Received exit status from master %d", exitval);
if (tty_flag && options.log_level != SYSLOG_LEVEL_QUIET)
fprintf(stderr, "Shared connection to %s closed.\r\n", host);
- exit(exitval[0]);
+ exit(exitval);
+}
+
+/* Multiplex client main loop. */
+void
+muxclient(const char *path)
+{
+ struct sockaddr_un addr;
+ int sock;
+ u_int pid;
+
+ if (muxclient_command == 0)
+ muxclient_command =...