Commit graph

62 commits

Author SHA1 Message Date
Vladimir Diaz
31f8f0566d
Add/revise entries in docstrings
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-06-18 10:41:05 -04:00
Vladimir Diaz
75f95391a4
Verify the format of the log_filename argument to enable_file_logging()
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-06-15 16:03:03 -04:00
Vladimir Diaz
203fb11815
Revise exception message in enable_file_loggin()
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-06-15 15:49:40 -04:00
Vladimir Diaz
57b9cb4620
Raise an exception if a user tries to changer an unset filehandler's log level
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-06-15 14:58:07 -04:00
Vladimir Diaz
9b35d2c1e6
Add a file handler if one hasn't already been added
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-06-15 14:45:40 -04:00
Vladimir Diaz
6291b35ca8
Add disable_file_logging()
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-06-14 17:32:29 -04:00
Vladimir Diaz
fd23a54082
Add enable_file_logging() to log.py
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-06-14 11:50:41 -04:00
Vladimir Diaz
8f65fa4154
Rename license files in modules
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-02-05 11:31:19 -05:00
Vladimir Diaz
3894bc4e31
Add copyright and license info to module files
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-30 13:23:38 -05:00
Vladimir Diaz
995f682436
Resolve remaining Pylint warnings for log.py
* Prevent refining outer variablename.
* Use 'junk' for unused variable names.

Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-27 13:58:18 -05:00
Vladimir Diaz
bb8729487d
Resolve Pylint's identified [E]rrors in the codebase
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-15 16:34:34 -05:00
Vladimir Diaz
bf26aa38f2 Fix import statements in log.py and test_log.py 2017-01-11 12:51:04 -05:00
Vladimir Diaz
8c913b6824 Fix SSL import statements in log.py 2017-01-09 16:57:32 -05:00
Vladimir Diaz
bea840f4ab Ensure the expected formats.py is imported in the remaining modules 2016-11-09 15:35:36 -05:00
Artiom Baloian
b793c81739 Added simple_settings, now it is a requirement of TuF.
Rename conf.py into the settings.py an changed import call.
2016-11-01 15:38:40 -04:00
Artiom Baloian
b07d9a5d0f Move some part of tufformats into the common formats 2016-10-31 19:04:14 -04:00
Artiom Baloian
8247a02737 Moved TuF exceptions and schem into the ssl_commons 2016-10-31 11:58:05 -04:00
Artiom Baloian
7098cdbc3a Move _vendor dir and split formats into the formats and tufformats 2016-10-28 18:37:28 -04:00
Vladimir Diaz
e0a4f18223 Improve code coverage 2016-07-21 10:28:46 -04:00
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