diff --git a/backend/backend/schema.py b/backend/backend/schema.py index 61387e953..a50c10846 100644 --- a/backend/backend/schema.py +++ b/backend/backend/schema.py @@ -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):