From: <los...@us...> - 2007-04-01 20:42:05
|
Revision: 568 http://svn.sourceforge.net/fail2ban/?rev=568&view=rev Author: lostcontrol Date: 2007-04-01 13:42:05 -0700 (Sun, 01 Apr 2007) Log Message: ----------- - Added date format for asctime without year Modified Paths: -------------- trunk/CHANGELOG trunk/server/datedetector.py Modified: trunk/CHANGELOG =================================================================== --- trunk/CHANGELOG 2007-03-26 21:17:31 UTC (rev 567) +++ trunk/CHANGELOG 2007-04-01 20:42:05 UTC (rev 568) @@ -11,6 +11,7 @@ ---------- - Close opened handlers. Thanks to Yaroslav Halchenko - Fixed "reload" bug. Many many thanks to Yaroslav Halchenko +- Added date format for asctime without year ver. 0.7.8 (2007/03/21) - release candidate ---------- Modified: trunk/server/datedetector.py =================================================================== --- trunk/server/datedetector.py 2007-03-26 21:17:31 UTC (rev 567) +++ trunk/server/datedetector.py 2007-04-01 20:42:05 UTC (rev 568) @@ -56,6 +56,12 @@ template.setRegex("\S{3} \S{3}\s{1,2}\d{1,2} \d{2}:\d{2}:\d{2} \d{4}") template.setPattern("%a %b %d %H:%M:%S %Y") self.__templates.append(template) + # asctime without year + template = DateStrptime() + template.setName("Weekday Month Day Hour:Minute:Second") + template.setRegex("\S{3} \S{3}\s{1,2}\d{1,2} \d{2}:\d{2}:\d{2}") + template.setPattern("%a %b %d %H:%M:%S") + self.__templates.append(template) # simple date template = DateStrptime() template.setName("Year/Month/Day Hour:Minute:Second") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |