Skip to content

Commit

Permalink
feat: add record (aka request logs) list and edit pages
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartLinked committed May 22, 2024
1 parent a72bf02 commit 110e91c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion object/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func GetRecords(owner string) ([]*Record, error) {

func AddRecord(record *Record) (bool, error) {
affected, err := ormer.Engine.Insert(record)
fmt.Println("try add Record: ", record)
if err != nil {
return false, err
}
Expand Down
3 changes: 1 addition & 2 deletions service/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ func handleRequest(w http.ResponseWriter, r *http.Request) {
RequestURI: r.RequestURI,
UserAgent: r.UserAgent(),
}
result, err := object.AddRecord(&record)
fmt.Println("Add result:", result)
_, err := object.AddRecord(&record)
if err != nil {
fmt.Println(err.Error())
}
Expand Down

0 comments on commit 110e91c

Please sign in to comment.