Skip to content

Commit

Permalink
Add some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
HEnquist committed Jun 25, 2024
1 parent db96850 commit 46a0b6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def get_status(request):
}
)
except IOError as e:
print("TODO safe to remove this try-except? error:", e)
#print("TODO safe to remove this try-except? error:", e)
pass
except IOError:
if reconnect_thread is None or not reconnect_thread.is_alive():
Expand Down Expand Up @@ -496,7 +496,6 @@ async def translate_eqapo_to_json(request):
channels = int(request.rel_url.query.get("channels", None))
except (ValueError, TypeError) as e:
raise web.HTTPBadRequest(reason=str(e))
print(channels)
config = await request.text()
converter = EqAPO(config, channels)
converter.translate_file()
Expand All @@ -518,8 +517,10 @@ async def validate_config(request):
# print(yaml.dump(config_with_absolute_filter_paths, indent=2))
errors = validator.get_errors()
if len(errors) > 0:
logging.debug("Config has errors")
logging.debug(errors)
return web.json_response(status=406, data=errors)
logging.debug("Validated config, ok")
return web.Response(text="OK", headers=HEADERS)


Expand Down

0 comments on commit 46a0b6d

Please sign in to comment.