Skip to content

Commit

Permalink
Merge d69b48d into 05f8a75
Browse files Browse the repository at this point in the history
  • Loading branch information
tihuan authored Jun 15, 2023
2 parents 05f8a75 + d69b48d commit 481b8b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .happy/terraform/envs/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module stack {
require_okta = false
stack_prefix = "/${var.stack_name}"
batch_container_memory_limit = 28000
memory = 50000
memory = 14000

api_domain = "api.${local.domain}"
web_domain = "${local.domain}"
Expand Down
3 changes: 2 additions & 1 deletion server/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def __init__(self, app_config):
@self.app.before_request
def pre_request_logging():
g.request_id = generate_request_id()
message = json.dumps(dict(url=request.path, method=request.method, schema=request.scheme))
message = json.dumps(dict(type="REQUEST", url=request.path, method=request.method, schema=request.scheme))
self.app.logger.info(message)

@self.app.after_request
Expand All @@ -207,6 +207,7 @@ def post_request_logging(response: Response):
url=request.path,
method=request.method,
schema=request.scheme,
type="RESPONSE",
)
)
response.headers["X-Request-Id"] = get_request_id()
Expand Down

0 comments on commit 481b8b5

Please sign in to comment.