Skip to content

Instantly share code, notes, and snippets.

@jellykells
Created June 2, 2022 14:25
Show Gist options
  • Save jellykells/68fdaba33b2a68c2a3edec59a34b5b40 to your computer and use it in GitHub Desktop.
Save jellykells/68fdaba33b2a68c2a3edec59a34b5b40 to your computer and use it in GitHub Desktop.
2022/06/02 09:16:04 ...orm@v1.2.5/engine.go:1139:Get() [I] [SQL] SELECT `id`, `repo_id`, `org_id`, `is_system_webhook`, `url`, `http_method`, `content_type`, `secret`, `events`, `is_active`, `type`, `meta`, `last_status`, `created_unix`, `updated_unix` FROM `webhook` WHERE `id`=? AND `repo_id`=? LIMIT 1 [7 27] - 949.709µs
2022/06/02 09:16:04 .../webhook/hooktask.go:172:HookTasks() [I] [SQL] SELECT `id`, `repo_id`, `hook_id`, `uuid`, `payload_content`, `event_type`, `is_delivered`, `delivered`, `is_succeed`, `request_content`, `response_content` FROM `hook_task` WHERE (hook_id=?) ORDER BY `id` DESC LIMIT 10 [7] - 986.41µs
2022/06/02 09:16:04 .../web/repo/webhook.go:1206:ReplayWebhook() [I] [SQL] BEGIN TRANSACTION [] - 338body.002µs
2022/06/02 09:16:04 models/db/context.go:138:GetByBean() [I] [SQL] SELECT `id`, `repo_id`, `hook_id`, `uuid`, `payload_content`, `event_type`, `is_delivered`, `delivered`, `is_succeed`, `request_content`, `response_content` FROM `hook_task` WHERE `hook_id`=? AND `uuid`=? LIMIT 1 [7 4d9ba15d-a815-4c22-a726-c2892608ebaa] - 1.249717ms
2022/06/02 09:16:04 .../webhook/hooktask.go:219:func1() [I] [SQL] INSERT INTO `hook_task` (`repo_id`,`hook_id`,`uuid`,`payload_content`,`event_type`,`is_delivered`,`delivered`,`is_succeed`,`request_content`,`response_content`) VALUES (?,?,?,?,?,?,?,?,?,?) [27 7 8a375e9c-0cfe-44ad-b876-b73e78f0ce5e {
"body": "<redacted>",
"msgtype": "m.notice",
"format": "org.matrix.custom.html",
"formatted_body": "<redacted>"
} issues false 0 false ] - 945.471µs
2022/06/02 09:16:04 .../web/repo/webhook.go:1206:ReplayWebhook() [I] [SQL] COMMIT [] - 112.742317ms
2022/06/02 09:16:04 .../webhook/hooktask.go:237:FindRepoUndeliveredHookTasks() [I] [SQL] SELECT `id`, `repo_id`, `hook_id`, `uuid`, `payload_content`, `event_type`, `is_delivered`, `delivered`, `is_succeed`, `request_content`, `response_content` FROM `hook_task` WHERE (repo_id=? AND is_delivered=?) [27 false] - 1.493104ms
2022/06/02 09:16:04 ...orm@v1.2.5/engine.go:1139:Get() [I] [SQL] SELECT `id`, `repo_id`, `org_id`, `is_system_webhook`, `url`, `http_method`, `content_type`, `secret`, `events`, `is_active`, `type`, `meta`, `last_status`, `created_unix`, `updated_unix` FROM `webhook` WHERE `id`=? LIMIT 1 [7] - 839.082µs
2022/06/02 09:16:04 models/user/user.go:992:GetUserByIDEngine() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme`, `keep_activity_private` FROM `user` WHERE `id`=? LIMIT 1 [1] - 1.690211ms
2022/06/02 09:16:04 ...s/issue_stopwatch.go:103:hasUserStopwatch() [I] [SQL] SELECT `id`, `issue_id`, `user_id`, `created_unix` FROM `stopwatch` WHERE (user_id = ?) LIMIT 1 [1] - 721.952µs
2022/06/02 09:16:04 ...orm@v1.2.5/engine.go:1139:Get() [I] [SQL] SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `num_projects`, `num_closed_projects`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `trust_model`, `avatar`, `created_unix`, `updated_unix` FROM `repository` WHERE `owner_id`=? AND `lower_name`=? LIMIT 1 [1 axon.sh] - 1.110446ms
2022/06/02 09:16:04 ...orm@v1.2.5/engine.go:1139:Get() [I] [SQL] SELECT `id`, `repo_id`, `user_id`, `mode`, `created_unix`, `updated_unix` FROM `collaboration` WHERE `repo_id`=? AND `user_id`=? LIMIT 1 [27 1] - 930.389µs
2022/06/02 09:16:04 ...ls/repo/repo_unit.go:226:getUnitsByRepoID() [I] [SQL] SELECT `id`, `repo_id`, `type`, `config`, `created_unix` FROM `repo_unit` WHERE (repo_id = ?) [27] - 772.456µs
2022/06/02 09:16:04 ...s/repo/pushmirror.go:102:GetPushMirrorsByRepoID() [I] [SQL] SELECT `id`, `repo_id`, `remote_name`, `interval`, `created_unix`, `last_update`, `last_error` FROM `push_mirror` WHERE (repo_id=?) [27] - 798.644µs
2022/06/02 09:16:04 ...ules/context/repo.go:506:RepoAssignment() [I] [SQL] SELECT count(*) FROM `release` WHERE repo_id=? AND is_draft=? [27 false] - 1.263285ms
2022/06/02 09:16:04 ...ules/context/repo.go:513:RepoAssignment() [I] [SQL] SELECT count(*) FROM `release` WHERE repo_id=? AND is_draft=? AND is_tag=? [27 false false] - 757.945µs
2022/06/02 09:16:04 models/org.go:631:GetOrgsCanCreateRepoByUserID() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme`, `keep_activity_private` FROM `user` WHERE id IN (SELECT `user`.id FROM `user` INNER JOIN `team_user` ON `team_user`.org_id = `user`.id INNER JOIN `team` ON `team`.id = `team_user`.team_id WHERE `team_user`.uid=? AND (`team`.authorize=? OR `team`.can_create_org_repo=?)) ORDER BY `user`.`name` ASC [1 owner true] - 1.384446ms
2022/06/02 09:16:04 models/repo/fork.go:49:GetUserFork() [I] [SQL] SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `num_projects`, `num_closed_projects`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `trust_model`, `avatar`, `created_unix`, `updated_unix` FROM `repository` WHERE (fork_id = ?) AND (owner_id = ?) LIMIT 1 [27 1] - 1.211753ms
2022/06/02 09:16:04 models/repo.go:338:FindUserOrgForks() [I] [SQL] SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `num_projects`, `num_closed_projects`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `trust_model`, `avatar`, `created_unix`, `updated_unix` FROM `repository` WHERE fork_id=? AND owner_id IN (SELECT org_id FROM org_user WHERE uid=?) [27 1] - 1.121198ms
2022/06/02 09:16:04 ...orm@v1.2.5/engine.go:1139:Get() [I] [SQL] SELECT `id`, `user_id`, `repo_id`, `mode`, `created_unix`, `updated_unix` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [1 27] - 1.115108ms
2022/06/02 09:16:04 ...orm@v1.2.5/engine.go:1139:Get() [I] [SQL] SELECT `id`, `uid`, `repo_id`, `created_unix` FROM `star` WHERE `uid`=? AND `repo_id`=? LIMIT 1 [1 27] - 1.217893ms
2022/06/02 09:16:04 ...dules/git/command.go:146:RunWithContext() [D] /home/gitea/gitea-repositories/<redacted>: /usr/bin/git -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= rev-parse
2022/06/02 09:16:04 ...dules/git/command.go:146:RunWithContext() [D] /home/gitea/gitea-repositories/<redacted>: /usr/bin/git -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= cat-file --batch
2022/06/02 09:16:04 ...dules/git/command.go:146:RunWithContext() [D] /home/gitea/gitea-repositories/<redacted>: /usr/bin/git -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= show-ref --tags
2022/06/02 09:16:04 ...dules/git/command.go:146:RunWithContext() [D] /home/gitea/gitea-repositories/<redacted>: /usr/bin/git -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= cat-file --batch-check
2022/06/02 09:16:04 ...dules/git/command.go:146:RunWithContext() [D] /home/gitea/gitea-repositories/<redacted>: /usr/bin/git -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= show-ref --heads
2022/06/02 09:16:04 ...orm@v1.2.5/engine.go:1139:Get() [I] [SQL] SELECT `id`, `repo_id`, `org_id`, `is_system_webhook`, `url`, `http_method`, `content_type`, `secret`, `events`, `is_active`, `type`, `meta`, `last_status`, `created_unix`, `updated_unix` FROM `webhook` WHERE `id`=? AND `repo_id`=? LIMIT 1 [7 27] - 939.824µs
2022/06/02 09:16:04 .../webhook/hooktask.go:172:HookTasks() [I] [SQL] SELECT `id`, `repo_id`, `hook_id`, `uuid`, `payload_content`, `event_type`, `is_delivered`, `delivered`, `is_succeed`, `request_content`, `response_content` FROM `hook_task` WHERE (hook_id=?) ORDER BY `id` DESC LIMIT 10 [7] - 1.022618ms
2022/06/02 09:16:04 ...s/context/context.go:214:HTML() [D] Template: repo/settings/webhook/new
2022/06/02 09:16:04 ...dels/notification.go:741:GetNotificationCount() [I] [SQL] SELECT count(*) FROM `notification` WHERE (user_id = ?) AND (status = ?) [1 1] - 967.655µs
2022/06/02 09:16:04 ...s/webhook/deliver.go:201:Deliver() [I] [SQL] UPDATE `hook_task` SET `repo_id` = ?, `hook_id` = ?, `uuid` = ?, `payload_content` = ?, `event_type` = ?, `is_delivered` = ?, `delivered` = ?, `is_succeed` = ?, `request_content` = ?, `response_content` = ? WHERE `id`=? [27 7 8a375e9c-0cfe-44ad-b876-b73e78f0ce5e {
"body": "<redacted>",
"msgtype": "m.notice",
"format": "org.matrix.custom.html",
"formatted_body": "<redacted>"
} issues true 1654179364922470021 false {"url":"https://<matrix_homeserver>/_matrix/client/r0/rooms/<room_id>/send/m.room.message/<message_id>","http_method":"PUT","headers":{"Authorization":"Bearer ","Content-Type":"application/json","X-GitHub-Delivery":"8a375e9c-0cfe-44ad-b876-b73e78f0ce5e","X-GitHub-Event":"issues","X-GitHub-Event-Type":"issues","X-Gitea-Delivery":"8a375e9c-0cfe-44ad-b876-b73e78f0ce5e","X-Gitea-Event":"issues","X-Gitea-Event-Type":"issues","X-Gitea-Signature":"","X-Gogs-Delivery":"8a375e9c-0cfe-44ad-b876-b73e78f0ce5e","X-Gogs-Event":"issues","X-Gogs-Event-Type":"issues","X-Gogs-Signature":"","X-Hub-Signature":"sha1=","X-Hub-Signature-256":"sha256="}} {"status":401,"headers":{"Access-Control-Allow-Headers":"X-Requested-With, Content-Type, Authorization, Date","Access-Control-Allow-Methods":"GET, HEAD, POST, PUT, DELETE, OPTIONS","Access-Control-Allow-Origin":"*","Cache-Control":"no-cache, no-store, must-revalidate","Connection":"keep-alive","Content-Type":"application/json","Date":"Thu, 02 Jun 2022 14:16:06 GMT","Server":"Apache/2.4.41 (Unix)"},"body":"{\"errcode\":\"M_MISSING_TOKEN\",\"error\":\"Invalid Authorization header.\"}"} 84] - 53.636313ms
2022/06/02 09:16:05 ...s/webhook/deliver.go:201:Deliver() [I] [SQL] UPDATE `webhook` SET `last_status` = ?, `updated_unix` = ? WHERE `id`=? [2 1654179364 7] - 32.474885ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment