Skip to content

Commit

Permalink
test: print for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-chaturvedi committed Oct 8, 2023
1 parent 37b4524 commit e683c1f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/backend/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,16 @@ def resolve_logs(root, info, app_id, start=0, end=0):
start_dt = datetime.fromtimestamp(start / 1000)
end_dt = datetime.fromtimestamp(end / 1000)

print('timestamp limits', start_dt, end_dt)

print('envs', envs)

# secret_events = SecretEvent.objects.filter(
# environment__in=envs, timestamp__lte=end_dt, timestamp__gte=start_dt).order_by('-timestamp')[:25]
secret_events = SecretEvent.objects.filter(environment__in=envs)

print('secret events', secret_events)

return LogsResponseType(kms=list(kms_logs.values()), secrets=secret_events)

def resolve_kms_logs_count(root, info, app_id):
Expand Down

0 comments on commit e683c1f

Please sign in to comment.