Commit graph

43 commits

Author SHA1 Message Date
Vladimir Diaz
86b7af94f2 Remove 'import os' statement (the os module is not needed) 2016-01-15 11:04:21 -05:00
Vladimir Diaz
d992c5dd3e Set the logger (prior to adding a potential file handler) to avoid multiple if-else statements 2016-01-14 17:58:46 -05:00
Vladimir Diaz
47cae502fa Allow users to specify the path (via conf.py) to save log files 2016-01-14 17:25:08 -05:00
vladdd
c5fd17ab3e Merge branch 'develop' of https://github.com/theupdateframework/tuf into develop
Conflicts:
	tests/test_hash.py
	tests/test_keydb.py
	tuf/formats.py
	tuf/keydb.py
	tuf/repository_tool.py
2014-05-10 20:26:06 -04:00
vladdd
c9e3b6046e Address Issue #214.
Allow validation of specific libraries rather than checking all of them in check_crypto_libraries().
Log warning if the repository tool is imported but has not been properly installed: $ pip install tuf[tools].
Modify format string of console log messages.
2014-05-03 18:03:25 -04:00
Vladimir Diaz
d831187949 Improve test coverage. 2014-05-01 12:59:34 -04:00
Vladimir Diaz
ab95a4b3aa [WIP] Python 2+3 support.
Python 2+3 unicode.
libraries.
The following modules (and their tests) work in PY2.7+3.3:
keydb, hash, formats, mirrors
2014-04-29 14:27:34 -04:00
vladdd
5f94d5be0d Support ISO 8601, vendor iso8601, clean codebase. 2014-04-19 14:27:53 -04:00
Vladimir Diaz
919fb0ff8f Log warning if top-level metadata expires soon. 2014-04-17 12:27:28 -04:00
Vladimir Diaz
3b5e0c0814 Merge 'develop' and resolve conflicts. 2014-01-27 13:35:11 -05:00
Vladimir Diaz
d380997b75 Minor edits, merge, and resolve conflicts. 2014-01-27 13:15:03 -05:00
Vladimir Diaz
973d3a23a3 Address Issue #137 and update repository_tool.py.
Add the add_restricted_paths() method.
Rename libtuf.py
Update README.
Update delegate_hashed_bins() docstring.
More testing of hashed bins and consistent snapshots.
Remove old scripts from setup.py.
2014-01-23 12:03:31 -05:00
Vladimir Diaz
6cb230af21 Add whitespace to log messages and update the top-level role objects in libtuf.py 2013-12-19 14:10:03 -05:00
vladdd
213b96dfea Update comments and schema type checked
Expand the comments on 'logging.Formatter.converter' to discuss the converter attribute.  Modify LENGTH_SCHEMA to LOGLEVEL_SCHEMA.
2013-10-01 15:33:39 -04:00
vladdd
c3a358ed17 Update comments about thread safety 2013-09-23 21:35:14 -04:00
vladdd
de6a5161c4 Add missing docstring to remove_console_handler() and minor edits 2013-09-23 19:54:47 -04:00
vladdd
c65a1aaf38 Fix link that discusses setting the time for all logging formatters 2013-09-23 19:33:25 -04:00
vladdd
7d691011e5 Resolve conflicts from demo 2 updates 2013-09-23 13:38:18 -04:00
dachshund
d2b202bc61 Simplify exception text in console handler. 2013-09-13 23:47:37 -04:00
dachshund
8187be5232 Simplify exception text in console handler. 2013-09-13 23:47:37 -04:00
dachshund
4d7d4bab8d Offer option to remove console handler; fix variable shadow bug.
The rest of the integration tests will need updates due to the fix of
the variable shadow bug.
2013-09-13 17:34:51 -04:00
dachshund
4c81247bc9 Offer option to remove console handler; fix variable shadow bug.
The rest of the integration tests will need updates due to the fix of
the variable shadow bug.
2013-09-13 17:34:51 -04:00
dachshund
bf17b00423 Add a filter to the logging console handler to simplify exception text. 2013-09-13 17:01:18 -04:00
dachshund
e577b3500e Add a filter to the logging console handler to simplify exception text. 2013-09-13 17:01:18 -04:00
dachshund
df9d9a9ad1 Fix a variable shadow bug in tuf.log. 2013-09-06 19:25:43 -04:00
dachshund
871205a57e Fix a variable shadow bug in tuf.log. 2013-09-06 19:25:43 -04:00
dachshund
fe84ae3fdb Undo a line in tuf.log. 2013-08-27 15:22:08 -04:00
dachshund
76971e0e0d Undo a line in tuf.log. 2013-08-27 15:22:08 -04:00
dachshund
e972e16872 Merge branch 'develop' into chain-of-trust
Conflicts:
	tuf/log.py
2013-08-27 14:53:33 -04:00
dachshund
9943599aab Merge branch 'develop' into chain-of-trust
Conflicts:
	tuf/log.py
2013-08-27 14:53:33 -04:00
vladdd
3537917015 Update the unit tests affected by the design change to log.py 2013-08-15 14:33:35 -04:00
vladdd
6f6f60fdff Update the unit tests affected by the design change to log.py 2013-08-15 14:33:35 -04:00
vladdd
54e7ba0f32 Refactor log.py and change the default logging behavior
Previously, logging messages were written to "tuf.log" *and* and the console, by default.  Modules had to explicitly disable the logger to silence console messages.  TUF, when integrated by a software updater, should not log messages to console by default.  The design change now forces modules to call tuf.log.add_console_handler() to enable logging messages to console.  The logger, file, and console handlers may have independent logging levels.
2013-08-13 12:19:31 -04:00
vladdd
5cbb8c48f9 Refactor log.py and change the default logging behavior
Previously, logging messages were written to "tuf.log" *and* and the console, by default.  Modules had to explicitly disable the logger to silence console messages.  TUF, when integrated by a software updater, should not log messages to console by default.  The design change now forces modules to call tuf.log.add_console_handler() to enable logging messages to console.  The logger, file, and console handlers may have independent logging levels.
2013-08-13 12:19:31 -04:00
vladdd
1b626d20ac Remove test print statements 2013-08-06 14:36:16 -04:00
vladdd
fa88d6e9b6 Remove test print statements 2013-08-06 14:36:16 -04:00
vladdd
ba03f13180 Implement proof-of-concept of minimum chain of trust updates 2013-08-05 08:36:37 -04:00
vladdd
061370c06f Merge master and resolve conflicts 2013-07-26 14:18:59 -04:00
zanefisher
fb7ec7c9ab Revert "Remove logging to stdout."
This reverts commit 5c222797d7.
2013-07-22 17:15:30 -04:00
dachshund
6ba28037b4 Fix bug which induced erroneous delegations. 2013-04-11 08:27:11 -04:00
dachshund
5c222797d7 Remove logging to stdout. 2013-03-29 18:14:16 -04:00
vladdd
93dafa6024 Continue design changes to address issues #12 and #17 2013-03-17 18:18:59 -04:00
vladdd
abf0349b05 Move all files up one directory from 'src/'. 2013-02-10 21:38:06 -05:00
Renamed from src/tuf/log.py (Browse further)