mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Merge pull request #9398 from appwrite/disable-logs-display
disable logs display
This commit is contained in:
commit
392b33ef26
5 changed files with 40 additions and 20 deletions
|
|
@ -2750,8 +2750,10 @@ App::get('/v1/account/logs')
|
|||
}
|
||||
|
||||
$response->dynamic(new Document([
|
||||
'total' => $audit->countLogsByUser($user->getInternalId()),
|
||||
'logs' => $output,
|
||||
//'total' => $audit->countLogsByUser($user->getInternalId()),
|
||||
//'logs' => $output,
|
||||
'total' => 0,
|
||||
'logs' => [],
|
||||
]), Response::MODEL_LOG_LIST);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -723,8 +723,10 @@ App::get('/v1/databases/:databaseId/logs')
|
|||
}
|
||||
|
||||
$response->dynamic(new Document([
|
||||
'total' => $audit->countLogsByResource($resource),
|
||||
'logs' => $output,
|
||||
//'total' => $audit->countLogsByResource($resource),
|
||||
//'logs' => $output,
|
||||
'total' => 0,
|
||||
'logs' => [],
|
||||
]), Response::MODEL_LOG_LIST);
|
||||
});
|
||||
|
||||
|
|
@ -1112,8 +1114,10 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/logs')
|
|||
}
|
||||
|
||||
$response->dynamic(new Document([
|
||||
'total' => $audit->countLogsByResource($resource),
|
||||
'logs' => $output,
|
||||
//'total' => $audit->countLogsByResource($resource),
|
||||
//'logs' => $output,
|
||||
'total' => 0,
|
||||
'logs' => [],
|
||||
]), Response::MODEL_LOG_LIST);
|
||||
});
|
||||
|
||||
|
|
@ -3763,8 +3767,10 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/documents/:documen
|
|||
}
|
||||
|
||||
$response->dynamic(new Document([
|
||||
'total' => $audit->countLogsByResource($resource),
|
||||
'logs' => $output,
|
||||
//'total' => $audit->countLogsByResource($resource),
|
||||
//'logs' => $output,
|
||||
'total' => 0,
|
||||
'logs' => [],
|
||||
]), Response::MODEL_LOG_LIST);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1047,8 +1047,10 @@ App::get('/v1/messaging/providers/:providerId/logs')
|
|||
}
|
||||
|
||||
$response->dynamic(new Document([
|
||||
'total' => $audit->countLogsByResource($resource),
|
||||
'logs' => $output,
|
||||
//'total' => $audit->countLogsByResource($resource),
|
||||
//'logs' => $output,
|
||||
'total' => 0,
|
||||
'logs' => [],
|
||||
]), Response::MODEL_LOG_LIST);
|
||||
});
|
||||
|
||||
|
|
@ -2276,8 +2278,10 @@ App::get('/v1/messaging/topics/:topicId/logs')
|
|||
}
|
||||
|
||||
$response->dynamic(new Document([
|
||||
'total' => $audit->countLogsByResource($resource),
|
||||
'logs' => $output,
|
||||
//'total' => $audit->countLogsByResource($resource),
|
||||
//'logs' => $output,
|
||||
'total' => 0,
|
||||
'logs' => [],
|
||||
]), Response::MODEL_LOG_LIST);
|
||||
});
|
||||
|
||||
|
|
@ -2686,8 +2690,10 @@ App::get('/v1/messaging/subscribers/:subscriberId/logs')
|
|||
}
|
||||
|
||||
$response->dynamic(new Document([
|
||||
'total' => $audit->countLogsByResource($resource),
|
||||
'logs' => $output,
|
||||
//'total' => $audit->countLogsByResource($resource),
|
||||
//'logs' => $output,
|
||||
'total' => 0,
|
||||
'logs' => [],
|
||||
]), Response::MODEL_LOG_LIST);
|
||||
});
|
||||
|
||||
|
|
@ -3451,8 +3457,10 @@ App::get('/v1/messaging/messages/:messageId/logs')
|
|||
}
|
||||
|
||||
$response->dynamic(new Document([
|
||||
'total' => $audit->countLogsByResource($resource),
|
||||
'logs' => $output,
|
||||
//'total' => $audit->countLogsByResource($resource),
|
||||
//'logs' => $output,
|
||||
'total' => 0,
|
||||
'logs' => [],
|
||||
]), Response::MODEL_LOG_LIST);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1415,7 +1415,9 @@ App::get('/v1/teams/:teamId/logs')
|
|||
}
|
||||
}
|
||||
$response->dynamic(new Document([
|
||||
'total' => $audit->countLogsByResource($resource),
|
||||
'logs' => $output,
|
||||
//'total' => $audit->countLogsByResource($resource),
|
||||
//'logs' => $output,
|
||||
'total' => 0,
|
||||
'logs' => [],
|
||||
]), Response::MODEL_LOG_LIST);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -915,8 +915,10 @@ App::get('/v1/users/:userId/logs')
|
|||
}
|
||||
|
||||
$response->dynamic(new Document([
|
||||
'total' => $audit->countLogsByUser($user->getInternalId()),
|
||||
'logs' => $output,
|
||||
//'total' => $audit->countLogsByUser($user->getInternalId()),
|
||||
//'logs' => $output,
|
||||
'total' => 0,
|
||||
'logs' => [],
|
||||
]), Response::MODEL_LOG_LIST);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue