Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 603845 Details for
Bug 847207
journald should say when it drops messages when syslog can't keep up with the log stream
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
diagnostic patch for libqb
a.patch (text/plain), 1.64 KB, created by
Angus Salkeld
on 2012-08-13 03:37:20 UTC
(
hide
)
Description:
diagnostic patch for libqb
Filename:
MIME Type:
Creator:
Angus Salkeld
Created:
2012-08-13 03:37:20 UTC
Size:
1.64 KB
patch
obsolete
>diff --git a/lib/log.c b/lib/log.c >index 128779f..4857893 100644 >--- a/lib/log.c >+++ b/lib/log.c >@@ -741,6 +741,7 @@ qb_log_init(const char *name, int32_t facility, uint8_t priority) > conf[i].facility = facility; > qb_list_init(&conf[i].filter_head); > qb_log_format_set(i, NULL); >+ conf[i].written = 0; > } > > qb_log_dcs_init(); >@@ -781,6 +782,16 @@ qb_log_fini(void) > > for (pos = 0; pos <= conf_active_max; pos++) { > t = &conf[pos]; >+ >+ if (conf[pos].name && >+ conf[pos].filename && >+ conf[pos].written > 0) { >+ syslog(LOG_INFO, "%s:%s[%d] wrote %ld messages", >+ conf[pos].name, >+ conf[pos].filename, >+ conf[pos].pos, >+ conf[pos].written); >+ } > _log_target_disable(t); > free(conf[pos].format); > qb_list_for_each_safe(iter2, next2, &t->filter_head) { >diff --git a/lib/log_file.c b/lib/log_file.c >index 8f1a94b..411cf77 100644 >--- a/lib/log_file.c >+++ b/lib/log_file.c >@@ -38,6 +38,8 @@ _file_logger(int32_t t, > > fprintf(f, "%s\n", output_buffer); > >+ target->written++; >+ > fflush(f); > if (target->file_sync) { > fsync(fileno(f)); >diff --git a/lib/log_int.h b/lib/log_int.h >index 55bfb13..ccc3d81 100644 >--- a/lib/log_int.h >+++ b/lib/log_int.h >@@ -41,6 +41,7 @@ struct qb_log_target { > char *format; > int32_t threaded; > void *instance; >+ uint64_t written; > > qb_log_reload_fn reload; > qb_log_close_fn close; >diff --git a/lib/log_syslog.c b/lib/log_syslog.c >index a6928be..d7b7f19 100644 >--- a/lib/log_syslog.c >+++ b/lib/log_syslog.c >@@ -50,6 +50,8 @@ _syslog_logger(int32_t target, > final_priority = LOG_EMERG; > } > syslog(final_priority, "%s", output_buffer); >+ >+ t->written++; > } > > static void
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 847207
:
603422
|
603423
| 603845 |
605107
|
605108
|
605595