Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use log helper #449

Merged
merged 21 commits into from
Mar 29, 2022
Merged

Commits on Feb 16, 2022

  1. Configuration menu
    Copy the full SHA
    f7d03a8 View commit details
    Browse the repository at this point in the history
  2. crypto: create enable_logging

    Need something like this for when modules are imported by other modules
    (no main in oletools is run, so no log_helper.enable_logging)
    christian-intra2net committed Feb 16, 2022
    Configuration menu
    Copy the full SHA
    a025857 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    68a27d0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5c0db3b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f7a3957 View commit details
    Browse the repository at this point in the history
  6. olevba: close() the VBA_Parser

    So glad we have the unittests, otherwise would never have found this
    christian-intra2net committed Feb 16, 2022
    Configuration menu
    Copy the full SHA
    55d9926 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5e59e93 View commit details
    Browse the repository at this point in the history
  8. olevba: use log_helper

    This is slightly more complicated since olevba has its own json-print
    functions that need to be made compatible with log_helper's json formatting
    christian-intra2net committed Feb 16, 2022
    Configuration menu
    Copy the full SHA
    ca0ee46 View commit details
    Browse the repository at this point in the history
  9. log_helper: allow integration with other json-printers

    Make log_helper compatible with olevba which has its own print_json
    function and does not (yet?) use logging to create json.
    christian-intra2net committed Feb 16, 2022
    Configuration menu
    Copy the full SHA
    cdede5b View commit details
    Browse the repository at this point in the history
  10. log_helper: Use stdout for all json logging

    Logging uses the default StreamHandler, which per default sends its
    output to sys.stderr. However, the surrounding '[', ']' are printed
    to stdout. Fix that.
    christian-intra2net committed Feb 16, 2022
    Configuration menu
    Copy the full SHA
    1e920d6 View commit details
    Browse the repository at this point in the history
  11. log_helper: provide logging.NOTSET

    This constant is needed for enable_logging() functions. It is the
    only reason for `import logging` in common-logging-enabled modules.
    Easier to provide it in log_helper
    christian-intra2net committed Feb 16, 2022
    Configuration menu
    Copy the full SHA
    87378db View commit details
    Browse the repository at this point in the history
  12. log_helper: Provide logger.setLevel also for older python

    This is part of LoggerAdapter only since python 3.2
    christian-intra2net committed Feb 16, 2022
    Configuration menu
    Copy the full SHA
    41b986a View commit details
    Browse the repository at this point in the history
  13. tests: Update olevba test to slight change in json output

    Do not need the last meta-information return code json output from
    olevba any more
    christian-intra2net committed Feb 16, 2022
    Configuration menu
    Copy the full SHA
    58954d6 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a3a5775 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    79b3c64 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    6c1c523 View commit details
    Browse the repository at this point in the history
  17. olevba: debug-log caught exception

    Help debugging
    christian-intra2net committed Feb 16, 2022
    Configuration menu
    Copy the full SHA
    de1e1ee View commit details
    Browse the repository at this point in the history
  18. mraptor: Use log_helper

    Logging in mraptor is used for debugging olevba only
    christian-intra2net committed Feb 16, 2022
    Configuration menu
    Copy the full SHA
    bcc339d View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    410baa0 View commit details
    Browse the repository at this point in the history
  20. tests: fix & extend olevba crypto test

    VBA stomping warning might occur here
    christian-intra2net committed Feb 16, 2022
    Configuration menu
    Copy the full SHA
    f899797 View commit details
    Browse the repository at this point in the history
  21. tests: speed up longest test

    On my test VM this reduces test time for this one test from 33s to
    10s
    christian-intra2net committed Feb 16, 2022
    Configuration menu
    Copy the full SHA
    b8ba847 View commit details
    Browse the repository at this point in the history