Skip to content

steemengine/settings.py is now a Python module, split logging into web and crons, plus reliability improvements to Coin Handlers

Compare
Choose a tag to compare
@Someguy123 Someguy123 released this 27 Mar 00:14
· 83 commits to master since this release

Updates since Version 1.0.2:

Commits: 54399be8 12834ca ee69b41 71d5908

  • NEW PACKAGE - Django-CORS is now used to enable cross-origin requests for the REST API
    • Two new .env settings - CORS_ORIGIN_ALLOW_ALL and CORS_ORIGIN_WHITELIST (by default, all cross-origin requests are allowed, whitelist is disabled)

Commit: fcc39e5

  • steemengine/settings.py is now a module steemengine/settings/*.py
    to help separate core Django settings, from the app's own settings

    • All settings module files have a docstring at the start, describing what .env vars are
      used by them, their default, and what they actually do.
    • The settings module has been properly added to the documentation (docs folder).
  • Logs are now split between logs/web and logs/crons to make it easier
    to track where an error occurred.

  • Various small changes to the default logging setup and settings

  • Fixed has_loader function in payments.coin_handlers

  • Reliability improvements to Coin Handlers:

    • New base exception: DeadAPIError - for informing the calling code that
      a necessary API is not functioning it should skip this loader/manager.

    • decorators.retry_on_error now allows a list of exceptions fail_on
      to be specified, if a listed exception is thrown by the wrapped function,
      retry_on_error will stop retrying and re-raise the caught exception immediately.

    • BitcoinLoader makes use of the new fail_on list, connection errors are now caught
      and thrown as DeadAPIError, avoiding wasted time re-trying an obviously dead daemon.

Commit: e6d53b37 post-release quick bug fix for default logger