Skip to content

Commit

Permalink
Log request details: number of files, size, output format
Browse files Browse the repository at this point in the history
  • Loading branch information
spilth committed Sep 24, 2023
1 parent bf42ebc commit 0b81819
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ def get_merge_gpx_tracks():
def post_merge_gpx_tracks():
"""Processes Merge GPX Tracks form"""
files = request.files.getlist("files")
extension = formats[request.form["format"]]["extension"]
driver = formats[request.form["format"]]["driver"]
output_format = request.form["format"]
extension = formats[output_format]["extension"]
driver = formats[output_format]["driver"]

app.logger.info("%i files submitted for %s output", len(files), output_format)
app.logger.info("%f kilobytes received", request.content_length / 1024)

merged_tracks = geopandas.GeoDataFrame(
columns=["name", "type", "geometry"], geometry="geometry"
Expand Down

0 comments on commit 0b81819

Please sign in to comment.