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

API logger work #603

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

API logger work #603

wants to merge 16 commits into from

Commits on Oct 30, 2023

  1. Configuration menu
    Copy the full SHA
    943853c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a963812 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2023

  1. Configuration menu
    Copy the full SHA
    7c1dbbd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e1f5760 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4ba7833 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b4704b7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d0514a2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5662ef6 View commit details
    Browse the repository at this point in the history
  7. - API call logging is now capturing city/state for easier reading of

      what calls are comming in
    - Moved load_dotenv(ENVFILE) out of db/config and
      enclave_wrangler/config into backend.config. If you import that, it
      will get loaded
    - Working on make_new_versions_of_csets for N3C Recommended updates
    Sigfried committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    29584ac View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1562c66 View commit details
    Browse the repository at this point in the history
  9. - Now logging will happen before processing the api request, and after

      it runs or fails, it should update the log with success/error message
      and how long it took
    Sigfried committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    c10abd1 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ea694b1 View commit details
    Browse the repository at this point in the history
  11. Needed to delete termhub-sdk from requirements.txt -- i think it

    appeared there after i did the pip freeze
    Sigfried committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    9e5657c View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2023

  1. - Moved logger to its own file.

    - Changed it from middleware to a regular function that needs to
      be called by any route handlers that want to use it. It adds seven
      lines to those functions, but the logger code is much easier to deal
      with now.
    - Added that code to every almost route called by the front on the
      search and comparison pages.
    - It finally logs useful information when errors occur
    - Had to make return_err_with_trace async
    - Moved redundant config stuff to backend/config
    Sigfried committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    01571e5 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2023

  1. fixed little bug

    Sigfried committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    72eb0ac View commit details
    Browse the repository at this point in the history
  2. - fixed some route signature bugs (was -> List, is -> Dict)

    - updated fastapi (which chatgpt recommended while debugging)
    Sigfried committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    9f848e8 View commit details
    Browse the repository at this point in the history