a4ec27bfd5ba15d5914063b674873a12f3eb8f9e |
|
02-Jan-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
log: Prevent LOG_TYPE_COUNT in client_log_ctx
Makes static analyzers happy |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
2f366ea2725490208d4a163533a2c90757608849 |
|
18-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
log: Add "disable log prefix" flag to log lines |
5f1d689131a75c39f064cbd4202373e7edf78f18 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on io_remove{,_closed}(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- io_remove(&E);
- }
+ io_remove(&E);
@@
expression E;
@@
- if (E != NULL) {
- io_remove_closed(&E);
- }
+ io_remove_closed(&E); |
f37939033c80f14b66868cc677179f9e54d729bd |
|
25-Aug-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
log: Log a warning for each service that still has processes at shutdown
This makes it clearer which services are causing log process to hang, and
also which processes may have their logging discarded afterwards. |
9a795eb60306eede5efc7e8ec5d584457a49e32e |
|
25-Aug-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
log: Include PID in prefix for internal log messages. |
211c638d81d382517d196ad47565e0d85012c927 |
|
19-Feb-2017 |
klemens <ka7@github.com> |
spelling fixes |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
0f27d0c9330143a8b08f6660d1dbe1cc921c209e |
|
09-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
log: Minor error logging and comment improvement. |
0dffa25d211be541ee3c953b23566a1a990789df |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: unsigned int:1 -> bool:1
perl -i -pe 's/unsigned int ([^,:;]+):1;/bool $1:1;/' **/*.[ch] |
e93184a9055c2530366dfe617e07199603c399dd |
|
06-Jun-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: remove autoclose parameter from [io]_stream_create_fd
Use [io]_stream_create_fd_autoclose() for autoclose. |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
e48f289d2e5b2546a2c5dcc90f7ab624cc58cca2 |
|
29-Aug-2015 |
Stephan Bosch <stephan@rename-it.nl> |
Removed all invocations of strtoll() and friends. |
da3aebb67683adc7399de1fea5ca4218f9c746d3 |
|
25-May-2015 |
Timo Sirainen <tss@iki.fi> |
log: read() errors weren't logged. |
ffafd76c96f018523f23601bc57200ec013c84a4 |
|
24-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
log: Don't confuse process sending a partial log line to process sending logs too fast.
If it's a partial line we don't want to show the "service too fast" error in
ps title. |
f2880c3c3de56ec757ffc393363bb863efd7bcbe |
|
09-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
log: If too much logging data is sent, show it in process title. |
aed2118ef7de81b1f7c4437991029cc043b23fa7 |
|
07-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
log: Log a warning if some connection is logging faster than we can write. |
f45d9079400cca2810f6c182b972924b42b55f33 |
|
07-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
log: Don't spend more than 100 msecs at a time logging one connection. |
f6849394b03f483abe2172bfc553be5c2439ea17 |
|
07-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
log: Small cleanup: Include log connection prefix when logging read() errors. |
452455bb3b7008907a6150ce56a4a1413dd07d75 |
|
07-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
log: Minor cleanup: Update ioloop_timeval whenever reading input from log client. |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
d695286ee8796c701f1911fefeb9bcb878dd2b32 |
|
27-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
log: Don't crash if master sends a negative service_fd number. |
d4f004105cd7159aa9ade6b019eaecce9e94f382 |
|
06-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
log_timestamp setting supports now %{usecs}
This is mainly useful for debugging. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
ea26d341b160373e5fa99bb6931d38429c91745a |
|
19-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
log: Recent log parser change started logging "Invalid log line" errors unintentionally. |
93ded1a45ac1b9bf6911182de8c6a5d7e1969650 |
|
18-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
log: Don't crash if log client sends line with pid=0. |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
ca4526e3b5fbf5ea3dd477a2098522a44c9ac52c |
|
12-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
i_set_failure_prefix() now takes printf-like parameters.
This avoids using t_strdup_printf() with it, which was done very commonly. |
a75d470c9223a75801418fcdda258885c36317e0 |
|
20-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Reverted "support for non-pointers" part of the hash table API changes.
Originally I wrote it using clang, which didn't give as many warnings as gcc
did. I guess this way is safer anyway.. |
4ee00532a265bdfb38539d811fcd12d51210ac35 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Array API changed: ARRAY_DEFINE(name, type) -> ARRAY(type) name
Easy way to update your existing code:
perl -i -pe 's:ARRAY_DEFINE\(([^,]+), *([^)]+)\);:ARRAY($2) $1;:' **/*.[ch] |
678d0463849ba777106eb7875f27db07a5d8e3df |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Hash table API is now (mostly) type safe. |
7536dca18968a279b69c685eedda205bee228fd4 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
hash_table_create(): Removed table_pool parameter.
Every single caller was using default_pool there, so there's no point in
having it. |
e34d170f8f0e084bd94bfbc1a7085ece67e508df |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Make sure we check all the functions' return values. Minor API changes to simplify this.
Checked using a patched clang that adds attribute(warn_unused_result) to all
functions. This commit fixes several error handling mistakes. |
b636982bb629d23efba1e49c361e19237c435f19 |
|
03-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
log: Avoid an "master input for invalid service_fd" error at deinit. |
9da1a079c12108658d58876cd8d157418b3b518c |
|
03-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
log: Don't shutdown until all log writers have gone.
This fixed losing log messages during shutdown. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
acba68a69cdd6f3f00faa18cccef356d95048e46 |
|
06-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
log: Keep track of last 1000 errors/warnings. "doveadm log errors" shows them. |
a7908708f261feeec9396e0817672fc842fa2cf1 |
|
06-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
log: Removed unnecessary code. |
800fc30be46bc6f8380f6de04aea7c19ea839ddf |
|
08-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
Added a new "FATAL" log command, which master uses to log all abnormal process exits.
The log process adds the process's log prefix or IP address to the message
if available. |
05f3f770d4d7f815544eb7acad66a3dc94f9248f |
|
08-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
log: Removed slightly confusing code.
A log client always receives a BYE, so don't free it earlier. |
93aa246b98205afab357471ecaaf51291a35bfa0 |
|
26-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-master: Don't count FIFOs as clients anymore. We never see them disconnected.
This fixes a problem with shutdown_clients=no when a closed director process
could hang around forever waiting for the FIFO to close. |
2e37d45867d081db150ab78dad303b9077aea24f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
183bea41fa640dc8117f3eb45ff935cd81377a84 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
19c587fe07581d654721efb724ccc7fa8513abd6 |
|
15-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
log: Avoid calling time() unnecessary when logging multiple lines. |
2303ad68175883aaebd1f3b18e69593c2422c7bb |
|
15-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
Cleaned up log callbacks and made them more extensible.
fatal_failure_callback_t type is now gone, there's only failure_callback_t
left that has a struct pointer as parameter. More parameters can be easily
added to the struct in future. |
5d4eaaf7babd0ada6fad82887b9cd9480dbc25b0 |
|
19-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
log: Removed unnecessary common.h.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
7feff164fa1a09aefcd6e41b8dcdf6d921440d26 |
|
07-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
log: Don't use 100% CPU when log connection closes.
--HG--
branch : HEAD |
0694891cdf35a905ba67b027d28c1657ede2b9c1 |
|
06-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
log: Log input wasn't read correctly.
--HG--
branch : HEAD |
b5f3c378bcb0df052f8d46ace0945e8cc1d2140e |
|
09-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
Logging via log service: Added support for changing process's log prefix.
--HG--
branch : HEAD |
3e8558a3a8e12b012e43976ead883bb5cc00ada4 |
|
04-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Fixed log process after recent lib-master changes.
--HG--
branch : HEAD |
e3540e734a79fd4f971652925079c2e26a4b5524 |
|
03-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
log, lib-master: More fifo handling fixes.
--HG--
branch : HEAD |
4d4d6d4745682790c20d759ba93dbea46b812c5d |
|
22-May-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master has now a global master_service variable that all binaries use.
There should always be only one of them anyway.
--HG--
branch : HEAD |
78fa3c578c14ee8a612f86cf73b6181c7f16463f |
|
05-May-2009 |
Timo Sirainen <tss@iki.fi> |
master: Fixes to handling logging.
Master now has a non-blocking write pipe to log process, so it no longer
blocks if log process is hanging. Also it's cleaner to send log commands via
a pipe specifically meant for them.
--HG--
branch : HEAD |
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76 |
|
24-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for v2.0 master rewrite. Several features are still missing.
--HG--
branch : HEAD |