aboutsummaryrefslogtreecommitdiff
path: root/rpki/log.py
AgeCommit message (Collapse)Author
2016-05-07Oops, TeX-style "--" numeric ranges in copyright comments are bad fitRob Austein
for XML. Apparently we were carefully changing just the XML files to use a single "-" to work around this. Enough already, just convert all copyright year ranges to single "-" and have done with this. svn path=/branches/tk705/; revision=6427
2016-05-07More copyright notices, what fun.Rob Austein
svn path=/branches/tk705/; revision=6426
2016-04-26Further consolidation of config file parsing, command line parsing,Rob Austein
and logging setup. Most programs now use the unified mechanism, although there are still a few holdouts: the GUI, which is a special case because it has no command line, and the rpki-rtr program, which, for historical reasons has its own implementation of the logging setup infrastructure. svn path=/branches/tk705/; revision=6390
2015-11-11Configure pylint to use the pylint-django plugin, which (mostly)Rob Austein
understands Django's exotic metaclasses, which in turn allows us to re-enable a number of pylint checks we had disabled. While we were at this, stripped out a bunch of old pylint pragmas, then added back the subset that were really needed. As usual with pylint, this turned up a few real bugs along with an awful lot of noise. svn path=/branches/tk705/; revision=6162
2015-10-26"Any programmer who fails to comply with the standard naming, formatting,Rob Austein
or commenting conventions should be shot. If it so happens that it is inconvenient to shoot him, then he is to be politely requested to recode his program in adherence to the above standard." -- Michael Spier, Digital Equipment Corporation svn path=/branches/tk705/; revision=6152
2015-10-20Change <self/> (etc) to <tenant/> (etc). "self" always was a reallyRob Austein
bad choice for something implemented in Python, holdover from an older specification, but Django ORM's troubles with "self" as a keyword argument were the last straw. Enough already. Backwards compatability should be a straightforward data migration. svn path=/branches/tk705/; revision=6134
2015-10-19Amputate old SQL code out of rpkid with a fire axe, replacing it withRob Austein
Django ORM. Duct tape and bailing wire everywhere, much clean-up left to do, but basic "make yamltest" suite runs. Much of the clean-up isn't worth doing until after revamping the I/O system, as it'll all change again at that point anyway. svn path=/branches/tk705/; revision=6127
2015-10-16PyLint. As usual, a lot of noise and a handful of real, albeit minor, bugs.Rob Austein
svn path=/branches/tk705/; revision=6123
2014-11-12Fix first round of RRDP SIA URI bugs.Rob Austein
svn path=/branches/tk705/; revision=6019
2014-09-17Clean out last vestiges of SAX-based publication protocol code.Rob Austein
svn path=/branches/tk705/; revision=5960
2014-08-28Log connection info in simplified HTTP server.Rob Austein
svn path=/branches/tk705/; revision=5937
2014-06-05First cut at fully configurable logging system. Still a bit raw, andRob Austein
not yet documented, but allows detailed logging configuration down to the class level, and flexible enough to allow runtime configuration if we decide we need that. svn path=/trunk/; revision=5860
2014-05-30Use --log-file in yamltest; debug the rotating log file options.Rob Austein
svn path=/trunk/; revision=5853
2014-05-30Rewritten rpki.log.init() still confuses PyLint.Rob Austein
svn path=/trunk/; revision=5852
2014-05-30Move all the complexity of configuring the ten zillion kinds ofRob Austein
logging handlers up front to the argparse stage, thereby also giving the application more control over the default logging configuration. svn path=/trunk/; revision=5851
2014-05-29PyLintRob Austein
svn path=/trunk/; revision=5845
2014-05-29Provide our own logging Formatter class rather than straining toRob Austein
subclass the stock one. Replace all uses of rpki.log.traceback() with logging package .exception() calls. Use LoggingAdapter for all the whacky per-stream logging code in rpki.http. Fix default logging priority for non-daemon programs like rpkic. svn path=/trunk/; revision=5843
2014-05-29For some reason using choices with a non-string type in argparse worksRob Austein
in Python 2.7.6 on MacOSX but not in Python 2.7.6 on FreeBSD. Not worth trying to figure out why, custom argparse.Action is easy. svn path=/trunk/; revision=5840
2014-05-28Cleanup. Whack default logging level down to warning, except when running ↵Rob Austein
directly under test harness. svn path=/trunk/; revision=5839
2014-05-28Update all uses of rpki.log.traceback() for use with logging module.Rob Austein
svn path=/trunk/; revision=5838
2014-05-28Whack all logging calls to use per-module logger objects.Rob Austein
svn path=/trunk/; revision=5837
2014-05-28Rework logging initialization code.Rob Austein
svn path=/trunk/; revision=5836
2014-05-22Initial conversion to Python logging system. Still very crude.Rob Austein
svn path=/trunk/; revision=5835
2014-05-22Clean excess baggage out of old logging code prior to replacing itRob Austein
with Python's logging system. svn path=/trunk/; revision=5834
2014-04-05Source tree reorg, phase 1. Almost everything moved, no file contents changed.Rob Austein
svn path=/branches/tk685/; revision=5757