Commit Graph

28 Commits

Author SHA1 Message Date
Pierre-Louis Bonicoli f2fd1824ca
Format the whole code using clang-format 2022-03-10 14:21:01 +01:00
Loïc Gomez 79d9be4e71
sanitize: ftell/fseek & len/file_offset type fixes 2022-03-10 14:20:41 +01:00
Yoann Guillot 87da44e583 connection: allow to disable / enable log (#211)
add option 'log' (true/false) in connection section,
this option overrides the global 'log' option.
Thanks to jj !
2011-04-07 02:32:44 +02:00
Pierre-Louis Bonicoli 81b8ed48cf Fix build errors on armel
sys/user.h on armel has a conflicting definition of 'struct user'.
This patch renames bip's structure to avoid the conflict.
Thanks to Philipp Kern and Dann Frazier !
2011-01-15 18:13:26 +01:00
Arnaud Cornet 7c0b6036f2 Ugly header fixups to fix build 2010-02-15 14:22:00 +00:00
Mathieu Pillard 2e5f4287ff With necessary header fix 2010-02-15 14:17:44 +00:00
Arnaud Cornet 405f8b4afc [log] Use canonical name to detect need for log rotation
Also reset store on part from server to close more file descriptor.
2009-06-28 16:33:29 +02:00
Arnaud Cornet 5ae1c1dec5 [log] close logs files more intensively. 2009-06-25 00:43:44 +02:00
Arnaud Cornet fe251f72b5 [FEATURE] /quote bip backlog [n]
/quote bip backlog triggers a log replay.
With the optional argument n in hours, you can request a backlog of a
few hours.
2009-01-17 14:16:31 +01:00
Arnaud Cornet 26eb9c28d7 [OPTION] implement backlog_reset_connection
backlog_reset_on_talk no works per query/channel.
Setting backlog_reset_connection to true falls back to the former kind
of backlog reset.
2009-01-17 12:50:39 +01:00
Arnaud Cornet f536a0546d Cleanup and fixes of the backlog code 2009-01-10 12:35:59 +01:00
Arnaud Cornet f1221703b0 [FEATURE] reset backlog on talk now "window" local
The reset_backlog_on_talk now resets current query or channel.
The /bip blreset command not takes an optional argument taking query
name or channel name.
2009-01-09 11:26:12 +01:00
Arnaud Cornet 3c810eef53 Refactor log system. prepare for /backlog 1 hour 2008-12-26 18:43:35 +01:00
Arnaud Cornet d3ef106c4f New array type, cleanupts and rename logfilegroup log_store 2008-12-20 14:20:50 +01:00
Arnaud Cornet 4b723ca479 more cleanups, start of a log refactoring
That changes log format and might breack everything.
2008-12-18 14:27:16 +01:00
Arnaud Cornet c150151066 BIG cleanup. check for memory allocation failure, add extra checks all arround. 2008-12-15 19:19:27 +01:00
Arnaud Cornet 0f0d0427b8 Enlarge connection buffer size and logline_maxlen. 2008-11-23 15:09:24 +01:00
Loc Gomez 671a455219 Fix UTF-8 in all files 2008-01-09 23:45:40 +01:00
Arnaud Cornet b3b6df53bb Add track_backlog member in lfg, so we have a cleaner way to exempt a channel from backloggin. 2007-11-25 15:29:32 +01:00
Arnaud Cornet 7967a47be0 Add log_free prototype. 2007-09-09 11:24:21 +02:00
Arnaud Cornet e9e9549228 Reinit logs for a given connection on well chosen times. 2007-09-08 23:51:45 +02:00
Arnaud Cornet 909fe5e1c1 Lots of structural changes.
Move backlog options to user statment.
Drop ircise, to go towards real SIGHUP support.
2007-09-02 14:59:19 +02:00
kyoshiro ad9c4d7021 create mandatory directories 2007-05-23 20:55:09 +00:00
nohar ae65ababf1 Fixed empty line bug. 2006-11-12 13:22:32 +00:00
nohar cb2f3a5e1e /bip blreset implemented 2005-05-29 23:00:30 +00:00
nohar 3a46247bd4 better log file format, log options, with backlog with memory based backlog 2005-05-19 20:55:11 +00:00
nohar 0a9a61954f backlog leak fix, backlog verbosification for debug, sign fix 2005-05-13 08:43:50 +00:00
nohar 665d2ec5af Initial import 2005-04-28 08:26:44 +00:00