search for: log_info

Displaying 20 results from an estimated 118 matches for "log_info".

2007 Feb 01
2
Re: [Nut-upsuser] Ablerex 625L USB version
...ret = comm->recv(buffer, RECV_BUFFER_LEN, ENDCHAR, IGNCHARS); > if (ret < Q1_CMD_REPLY_LEN) { > upsdebugx(1, "UPS doesn't return any information > about its status."); > *************** > *** 564,571 **** > { > upslogx(LOG_INFO, "Shutting down UPS immediately."); > > ! ser_send_pace(upsfd, SEND_PACE, "C%c", ENDCHAR); > ! ser_send_pace(upsfd, SEND_PACE, "S%02dR%04d%c", > shutdown_delay, start_delay, ENDCHAR); > } > > > --- 569,576 ---- > { >...
2010 Feb 16
1
[PATCH] Build: Make changelog action call git directly without Git module
...d, 2 insertions(+), 16 deletions(-) diff --git a/Build.PL b/Build.PL index efce5dd..51afae8 100644 --- a/Build.PL +++ b/Build.PL @@ -150,22 +150,8 @@ sub ACTION_changelog return 1; } - # Check that git is available - eval "use Git;"; - if($@) { - $self->log_info("Git is not installed\n"); - return 1; - } - - # Update submodules to get git2cl - my $repo = Git->repository(Directory => '.'); - - eval { - $repo->command_noisy('submodule', 'update'); - }; - - if($@) { - $self->...
2001 Dec 10
10
hang on exit bug under Linux
>From what I understand, the problem is due to people's disagreement about what the "correct" behavior should be. I'm pretty sure that the following is the correct behavior from running rsh and ssh often (both fsecure and openssh). Lets say you have a stupid script that does while 1 do sleep 1 done Called foreverSleep on your remote host: rsh remotehost
2008 Aug 12
2
[PATCH] Allow GSSAPI to work with multihomed hosts
...00 -0700 +++ dovecot-1.0.13-jgg/src/auth/mech-gssapi.c 2008-08-11 23:52:15.000000000 -0600 @@ -101,6 +101,13 @@ gss_name_t gss_principal; const char *service_name; + if (strcmp(request->auth->gssapi_hostname,"$ALL") == 0) { + auth_request_log_info(request, "gssapi", + "Using all keytab entires"); + *ret = GSS_C_NO_CREDENTIAL; + return GSS_S_COMPLETE; + } + if (strcasecmp(request->service, "POP3") == 0) { /* The standard POP3 service...
2005 Dec 28
2
(no subject)
...ct hiddev_ev /* x86 page == ups-specific, ignore these for now */ if ((ev->hid & 0x860000) == 0x860000) { + /* This warning repeats every 5 seconds, and things + work fine without it, so I've commented it out... + upslogx(LOG_INFO, "Ignoring x86 page event 0x%x (%d)", ev->hid, ev->value); + */ return; } @@ -176,8 +180,13 @@ static void parse_event(struct hiddev_ev break; default: + /* This warning rep...
2010 Feb 16
2
[PATCH 1/3] Build: Make changelog action call git directly without Git module
...d, 2 insertions(+), 16 deletions(-) diff --git a/Build.PL b/Build.PL index efce5dd..51afae8 100644 --- a/Build.PL +++ b/Build.PL @@ -150,22 +150,8 @@ sub ACTION_changelog return 1; } - # Check that git is available - eval "use Git;"; - if($@) { - $self->log_info("Git is not installed\n"); - return 1; - } - - # Update submodules to get git2cl - my $repo = Git->repository(Directory => '.'); - - eval { - $repo->command_noisy('submodule', 'update'); - }; - - if($@) { - $self->...
2013 Oct 25
1
Shutdown problem with Mecer 1000VA Online UPS
...e code. This is not right. Code as follows: 418 /* 419 * If a command is invalid, it will be echoed back 420 */ 421 if (blazer_command(buf, buf, sizeof(buf)) > 0) { 422 upslogx(LOG_ERR, "instcmd: command [%s] failed", cmdname); 423 return STAT_INSTCMD_FAILED; 424 } 425 426 upslogx(LOG_INFO, "instcmd: command [%s] handled", cmdname); 427 return STAT_INSTCMD_HANDLED; As far as I understand the code line 421 tries to test for a 'comms failure' (e.g. driver disconnection) or any return string. I also suspect that comms failures are negative numbers. Should the test no...
2013 Dec 05
0
Plea for a more loquacious nut
...ny years ago, and its based on this "experience" that I'm guessing that in upssched.c function exec_cmd the code > > snprintf(buf, sizeof(buf), "%s %s", cmdscript, cmd); > err = system(buf); > if (WIFEXITED(err)) { > if (WEXITSTATUS(err)) { > upslogx(LOG_INFO, "exec_cmd(%s) returned %d", buf, WEXITSTATUS(err)); > } > > attempts to send a command to the operating system, possibly to execute a Bash script. If system(buf) fails, the tests block the error message. Surely the error message is essential. An unattended box is now in an e...
2010 Sep 20
0
No subject
...= nbPackets * i; =20 if(len < 64) len =3D 64; =09 - memset(packet.data, 0, 14); - RAND_pseudo_bytes(packet.data + 14, len - 14); + //RAND_pseudo_bytes(packet.data, len); + memset(packet.data, 0x0, len); packet.len =3D len; packet.priority =3D 0; =20 - ifdebug(TRAFFIC) logger(LOG_INFO, "Sending MTU probe length %d to %s = (%s)", len, n->name, n->hostname); + ifdebug(TRAFFIC) logger(LOG_INFO, "Sending MTU probe length %d to %s = (%s) from interval [%d - %d]", len, n->name, n->hostname, n->minmtu, = n->maxmtu); =20 send_udppacket(n, &p...
2010 Feb 25
2
dovecot-2.0.beta3 tcpwrapper support in Solaris
...fined first referenced symbol in file deny_severity /usr/sfw/lib//libwrap.so allow_severity /usr/sfw/lib//libwrap.so These are not defined but application itself should define these globally so I've added these to configure and src/util/tcpwrap.c #include <syslog.h> int allow_severity = LOG_INFO; int deny_severity = LOG_WARNING; Tomppa
2015 Mar 05
0
[PATCH v3] fish: add journal-view command
.../* not found */ -} - -static const char *const log_level_table[] = { - [LOG_EMERG] = "emerg", - [LOG_ALERT] = "alert", - [LOG_CRIT] = "crit", - [LOG_ERR] = "err", - [LOG_WARNING] = "warning", - [LOG_NOTICE] = "notice", - [LOG_INFO] = "info", - [LOG_DEBUG] = "debug" -}; - static int do_log_journal (void) { int r; - unsigned errors = 0; - if (guestfs_journal_open (g, JOURNAL_DIR) == -1) return -1; - while ((r = guestfs_journal_next (g)) > 0) { - CLEANUP_FREE_XATTR_LIST struct guestf...
2015 Mar 03
2
[PATCH v2] RFE: journal reader in guestfish
This implements new guestfish only command called journal-view. There seems to be a minor issue when user wants to run it through pager (more) and wants cancel it. User will end up with stuck guestfish until journal-view transfers all journal items. Output is now configurable, it's the same format as virt-log has, since both uses same code now. Maros Zatko (1): fish: add journal-view
2015 Mar 05
2
[PATCH v3] RFE: journal reader in guestfish
There seems to be a minor issue when user wants to run it through pager (more) and wants cancel it. User will end up with stuck guestfish until journal-view transfers all journal items. Output is now configurable, it's the same format as virt-log has, since both uses same code now. Maros Zatko (1): fish: add journal-view command cat/Makefile.am | 1 + cat/log.c | 113
2013 Dec 04
5
Plea for a more loquacious nut
...ass exercise many many years ago, and its based on this "experience" that I'm guessing that in upssched.c function exec_cmd the code snprintf(buf, sizeof(buf), "%s %s", cmdscript, cmd); err = system(buf); if (WIFEXITED(err)) { if (WEXITSTATUS(err)) { upslogx(LOG_INFO, "exec_cmd(%s) returned %d", buf, WEXITSTATUS(err)); } attempts to send a command to the operating system, possibly to execute a Bash script. If system(buf) fails, the tests block the error message. Surely the error message is essential. An unattended box is now in an emergency si...
2015 Aug 31
0
[PATCH v5 1/2] cat: move get_journal_field to fish/journal.c
.../* not found */ -} - -static const char *const log_level_table[] = { - [LOG_EMERG] = "emerg", - [LOG_ALERT] = "alert", - [LOG_CRIT] = "crit", - [LOG_ERR] = "err", - [LOG_WARNING] = "warning", - [LOG_NOTICE] = "notice", - [LOG_INFO] = "info", - [LOG_DEBUG] = "debug" -}; - static int do_log_journal (void) { - int r; - unsigned errors = 0; - if (guestfs_journal_open (g, JOURNAL_DIR) == -1) return -1; - while ((r = guestfs_journal_next (g)) > 0) { - CLEANUP_FREE_XATTR_LIST struct guestf...
2015 Aug 27
0
[PATCH v4 1/2] cat: move get_journal_field to fish/journal.c
.../* not found */ -} - -static const char *const log_level_table[] = { - [LOG_EMERG] = "emerg", - [LOG_ALERT] = "alert", - [LOG_CRIT] = "crit", - [LOG_ERR] = "err", - [LOG_WARNING] = "warning", - [LOG_NOTICE] = "notice", - [LOG_INFO] = "info", - [LOG_DEBUG] = "debug" -}; - static int do_log_journal (void) { int r; - unsigned errors = 0; - if (guestfs_journal_open (g, JOURNAL_DIR) == -1) return -1; - while ((r = guestfs_journal_next (g)) > 0) { - CLEANUP_FREE_XATTR_LIST struct guestf...
2001 Jul 05
1
OpenSSH Logging Madness
...h that implements just these changes. The patch is against OpenSSH 2.9p2 + simon at sxw.org.uk's GSS-API patches + my named key / key pattern patches (posted to openssh-unix-dev at mindrot.org). I do hope that LOG_NOTICE is available on all platforms -- where it isn't it could be mapped to LOG_INFO. Cheers, Nico ******************************************************************************** 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 J...
2008 Sep 30
5
Corrupted transaction log file / record size too small
...3") == 0) { (void)strcpy(server, REAL_POP3_SERVER); (void)strcpy(server_name, REAL_POP3_NAME); } else { unknown_service = 1; } /** prepare to log: **/ openlog(LOGNAME, LOG_PID, LOG_LOCAL0); if (unknown_service) { syslog(LOG_INFO, "can't handle unknown service '%s'", service); exit(1); } /** $USER is the only way we can determine who called us: **/ if (! (u = getenv("USER"))) { syslog(LOG_INFO, "aborting: no value supplied for $USER"); exit...
2015 Aug 27
4
[PATCH v4 0/2] RFE: journal reader in guestfish
There seems to be a minor issue when user wants to run it through pager (more) and wants cancel it. User will end up with stuck guestfish until journal-view transfers all journal items. Output is configurable, it's the same format as virt-log has, since both uses same code. Maros Zatko (2): cat: move get_journal_field to fish/journal.c fish: add journal-view command cat/Makefile.am
2015 Aug 31
5
[PATCH v5 0/2] RFE: journal reader in guestfish
There seems to be a minor issue when user wants to run it through pager (more) and wants cancel it. User will end up with stuck guestfish until journal-view transfers all journal items. Output is configurable, it's the same format as virt-log has, since both uses same code. Maros Zatko (2): cat: move get_journal_field to fish/journal.c fish: add journal-view command (RHBZ#988100)