Skip to content

Commit 0904902

Browse files
committed
documentation
1 parent 22b53ef commit 0904902

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/audit.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ func (api *API) auditLogs(rw http.ResponseWriter, r *http.Request) {
3434

3535
queryStr := r.URL.Query().Get("q")
3636
filter, errs := auditSearchQuery(queryStr)
37-
fmt.Println("FILTER", filter.DateFrom)
38-
fmt.Println("FILTER", filter.DateTo)
3937

4038
if len(errs) > 0 {
4139
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{

docs/admin/audit-logs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ The supported filters are:
2929
- `action`- The action applied to a resource. You can [find here](https://pkg.go.dev/github.com/coder/coder@main/codersdk#AuditAction) all the actions that are supported.
3030
- `username` - The username of the user who triggered the action.
3131
- `email` - The email of the user who triggered the action.
32+
- `date_from` - The inclusive start date with format `YYYY-MM-DD`.
33+
- `date_to ` - the inclusive end date with format `YYYY-MM-DD`.
3234

3335
## Enabling this feature
3436

0 commit comments

Comments
 (0)