{"action":"created","comment":{"url":"https://api.github.com/repos/smancke/guble/pulls/comments/66748361","id":66748361,"diff_hunk":"@@ -251,25 +290,34 @@ func (router *router) storeAndChannelMessage(msg *protocol.Message) error {\n \tmTotalMessagesIncomingBytes.Add(lenMsg)\n \n \tif err := router.messageStore.StoreTx(msg.Path.Partition(), txCallback); err != nil {\n-\t\tprotocol.Err(\"router: error storing message in partition %v: %v\", msg.Path.Partition(), err)\n+\t\tlogger.WithFields(log.Fields{\n+\t\t\t\"err\":          err,\n+\t\t\t\"msgPartition\": msg.Path.Partition(),\n+\t\t}).Error(\"Error storing message in partition\")\n \t\tmTotalMessageStoreErrors.Add(1)\n \t\treturn err\n \t} else {\n \t\tmTotalMessagesStoredBytes.Add(lenMsg)\n \t}\n \n+\n \tif float32(len(router.handleC))/float32(cap(router.handleC)) > overloadedHandleChannelRatio {\n-\t\tprotocol.Warn(\"router: handleC channel almost full: current length=%v, max. capacity=%v\",\n-\t\t\tlen(router.handleC), cap(router.handleC))\n-\t\tmTotalOverloadedHandleChannel.Add(1)\n+\t\tlogger.WithFields(log.Fields{\n+\t\t\t\"currentLength\": len(router.handleC),\n+\t\t\t\"maxCapacity\":   cap(router.handleC),\n+\t\t}).Warn(\"Warning handleC channel almost full\")\n+\tmTotalOverloadedHandleChannel.Add(1)","path":"server/router.go","position":172,"original_position":172,"commit_id":"53c44307bff286dd071328efd04b4290eb537f8a","original_commit_id":"53c44307bff286dd071328efd04b4290eb537f8a","user":{"login":"Bogh","id":851869,"avatar_url":"https://avatars.githubusercontent.com/u/851869?v=3","gravatar_id":"","url":"https://api.github.com/users/Bogh","html_url":"https://github.com/Bogh","followers_url":"https://api.github.com/users/Bogh/followers","following_url":"https://api.github.com/users/Bogh/following{/other_user}","gists_url":"https://api.github.com/users/Bogh/gists{/gist_id}","starred_url":"https://api.github.com/users/Bogh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bogh/subscriptions","organizations_url":"https://api.github.com/users/Bogh/orgs","repos_url":"https://api.github.com/users/Bogh/repos","events_url":"https://api.github.com/users/Bogh/events{/privacy}","received_events_url":"https://api.github.com/users/Bogh/received_events","type":"User","site_admin":false},"body":"gofmt this.","created_at":"2016-06-13T07:20:31Z","updated_at":"2016-06-13T07:20:31Z","html_url":"https://github.com/smancke/guble/pull/103#discussion_r66748361","pull_request_url":"https://api.github.com/repos/smancke/guble/pulls/103","_links":{"self":{"href":"https://api.github.com/repos/smancke/guble/pulls/comments/66748361"},"html":{"href":"https://github.com/smancke/guble/pull/103#discussion_r66748361"},"pull_request":{"href":"https://api.github.com/repos/smancke/guble/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/smancke/guble/pulls/103","id":73334237,"html_url":"https://github.com/smancke/guble/pull/103","diff_url":"https://github.com/smancke/guble/pull/103.diff","patch_url":"https://github.com/smancke/guble/pull/103.patch","issue_url":"https://api.github.com/repos/smancke/guble/issues/103","number":103,"state":"open","locked":false,"title":"Feature/guble #51 improve loggin pn 17","user":{"login":"marian-craciunescu","id":6702878,"avatar_url":"https://avatars.githubusercontent.com/u/6702878?v=3","gravatar_id":"","url":"https://api.github.com/users/marian-craciunescu","html_url":"https://github.com/marian-craciunescu","followers_url":"https://api.github.com/users/marian-craciunescu/followers","following_url":"https://api.github.com/users/marian-craciunescu/following{/other_user}","gists_url":"https://api.github.com/users/marian-craciunescu/gists{/gist_id}","starred_url":"https://api.github.com/users/marian-craciunescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marian-craciunescu/subscriptions","organizations_url":"https://api.github.com/users/marian-craciunescu/orgs","repos_url":"https://api.github.com/users/marian-craciunescu/repos","events_url":"https://api.github.com/users/marian-craciunescu/events{/privacy}","received_events_url":"https://api.github.com/users/marian-craciunescu/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-10T07:55:09Z","updated_at":"2016-06-13T07:20:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e5ee1dff9ed7a00ebb285788c979a9f5774bb52","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/smancke/guble/pulls/103/commits","review_comments_url":"https://api.github.com/repos/smancke/guble/pulls/103/comments","review_comment_url":"https://api.github.com/repos/smancke/guble/pulls/comments{/number}","comments_url":"https://api.github.com/repos/smancke/guble/issues/103/comments","statuses_url":"https://api.github.com/repos/smancke/guble/statuses/53c44307bff286dd071328efd04b4290eb537f8a","head":{"label":"smancke:feature/guble-#51-improve-loggin-PN-17","ref":"feature/guble-#51-improve-loggin-PN-17","sha":"53c44307bff286dd071328efd04b4290eb537f8a","user":{"login":"smancke","id":4291379,"avatar_url":"https://avatars.githubusercontent.com/u/4291379?v=3","gravatar_id":"","url":"https://api.github.com/users/smancke","html_url":"https://github.com/smancke","followers_url":"https://api.github.com/users/smancke/followers","following_url":"https://api.github.com/users/smancke/following{/other_user}","gists_url":"https://api.github.com/users/smancke/gists{/gist_id}","starred_url":"https://api.github.com/users/smancke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smancke/subscriptions","organizations_url":"https://api.github.com/users/smancke/orgs","repos_url":"https://api.github.com/users/smancke/repos","events_url":"https://api.github.com/users/smancke/events{/privacy}","received_events_url":"https://api.github.com/users/smancke/received_events","type":"User","site_admin":false},"repo":{"id":46234623,"name":"guble","full_name":"smancke/guble","owner":{"login":"smancke","id":4291379,"avatar_url":"https://avatars.githubusercontent.com/u/4291379?v=3","gravatar_id":"","url":"https://api.github.com/users/smancke","html_url":"https://github.com/smancke","followers_url":"https://api.github.com/users/smancke/followers","following_url":"https://api.github.com/users/smancke/following{/other_user}","gists_url":"https://api.github.com/users/smancke/gists{/gist_id}","starred_url":"https://api.github.com/users/smancke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smancke/subscriptions","organizations_url":"https://api.github.com/users/smancke/orgs","repos_url":"https://api.github.com/users/smancke/repos","events_url":"https://api.github.com/users/smancke/events{/privacy}","received_events_url":"https://api.github.com/users/smancke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smancke/guble","description":"websocket based messaging server written in golang","fork":false,"url":"https://api.github.com/repos/smancke/guble","forks_url":"https://api.github.com/repos/smancke/guble/forks","keys_url":"https://api.github.com/repos/smancke/guble/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smancke/guble/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smancke/guble/teams","hooks_url":"https://api.github.com/repos/smancke/guble/hooks","issue_events_url":"https://api.github.com/repos/smancke/guble/issues/events{/number}","events_url":"https://api.github.com/repos/smancke/guble/events","assignees_url":"https://api.github.com/repos/smancke/guble/assignees{/user}","branches_url":"https://api.github.com/repos/smancke/guble/branches{/branch}","tags_url":"https://api.github.com/repos/smancke/guble/tags","blobs_url":"https://api.github.com/repos/smancke/guble/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smancke/guble/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smancke/guble/git/refs{/sha}","trees_url":"https://api.github.com/repos/smancke/guble/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smancke/guble/statuses/{sha}","languages_url":"https://api.github.com/repos/smancke/guble/languages","stargazers_url":"https://api.github.com/repos/smancke/guble/stargazers","contributors_url":"https://api.github.com/repos/smancke/guble/contributors","subscribers_url":"https://api.github.com/repos/smancke/guble/subscribers","subscription_url":"https://api.github.com/repos/smancke/guble/subscription","commits_url":"https://api.github.com/repos/smancke/guble/commits{/sha}","git_commits_url":"https://api.github.com/repos/smancke/guble/git/commits{/sha}","comments_url":"https://api.github.com/repos/smancke/guble/comments{/number}","issue_comment_url":"https://api.github.com/repos/smancke/guble/issues/comments{/number}","contents_url":"https://api.github.com/repos/smancke/guble/contents/{+path}","compare_url":"https://api.github.com/repos/smancke/guble/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smancke/guble/merges","archive_url":"https://api.github.com/repos/smancke/guble/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smancke/guble/downloads","issues_url":"https://api.github.com/repos/smancke/guble/issues{/number}","pulls_url":"https://api.github.com/repos/smancke/guble/pulls{/number}","milestones_url":"https://api.github.com/repos/smancke/guble/milestones{/number}","notifications_url":"https://api.github.com/repos/smancke/guble/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smancke/guble/labels{/name}","releases_url":"https://api.github.com/repos/smancke/guble/releases{/id}","deployments_url":"https://api.github.com/repos/smancke/guble/deployments","created_at":"2015-11-15T20:32:42Z","updated_at":"2016-06-11T16:00:56Z","pushed_at":"2016-06-13T06:51:48Z","git_url":"git://github.com/smancke/guble.git","ssh_url":"git@github.com:smancke/guble.git","clone_url":"https://github.com/smancke/guble.git","svn_url":"https://github.com/smancke/guble","homepage":null,"size":674,"stargazers_count":24,"watchers_count":24,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":14,"forks":4,"open_issues":14,"watchers":24,"default_branch":"master"}},"base":{"label":"smancke:master","ref":"master","sha":"35630c30c9dd5d6544aa7a80bb7b3cde90246830","user":{"login":"smancke","id":4291379,"avatar_url":"https://avatars.githubusercontent.com/u/4291379?v=3","gravatar_id":"","url":"https://api.github.com/users/smancke","html_url":"https://github.com/smancke","followers_url":"https://api.github.com/users/smancke/followers","following_url":"https://api.github.com/users/smancke/following{/other_user}","gists_url":"https://api.github.com/users/smancke/gists{/gist_id}","starred_url":"https://api.github.com/users/smancke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smancke/subscriptions","organizations_url":"https://api.github.com/users/smancke/orgs","repos_url":"https://api.github.com/users/smancke/repos","events_url":"https://api.github.com/users/smancke/events{/privacy}","received_events_url":"https://api.github.com/users/smancke/received_events","type":"User","site_admin":false},"repo":{"id":46234623,"name":"guble","full_name":"smancke/guble","owner":{"login":"smancke","id":4291379,"avatar_url":"https://avatars.githubusercontent.com/u/4291379?v=3","gravatar_id":"","url":"https://api.github.com/users/smancke","html_url":"https://github.com/smancke","followers_url":"https://api.github.com/users/smancke/followers","following_url":"https://api.github.com/users/smancke/following{/other_user}","gists_url":"https://api.github.com/users/smancke/gists{/gist_id}","starred_url":"https://api.github.com/users/smancke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smancke/subscriptions","organizations_url":"https://api.github.com/users/smancke/orgs","repos_url":"https://api.github.com/users/smancke/repos","events_url":"https://api.github.com/users/smancke/events{/privacy}","received_events_url":"https://api.github.com/users/smancke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smancke/guble","description":"websocket based messaging server written in golang","fork":false,"url":"https://api.github.com/repos/smancke/guble","forks_url":"https://api.github.com/repos/smancke/guble/forks","keys_url":"https://api.github.com/repos/smancke/guble/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smancke/guble/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smancke/guble/teams","hooks_url":"https://api.github.com/repos/smancke/guble/hooks","issue_events_url":"https://api.github.com/repos/smancke/guble/issues/events{/number}","events_url":"https://api.github.com/repos/smancke/guble/events","assignees_url":"https://api.github.com/repos/smancke/guble/assignees{/user}","branches_url":"https://api.github.com/repos/smancke/guble/branches{/branch}","tags_url":"https://api.github.com/repos/smancke/guble/tags","blobs_url":"https://api.github.com/repos/smancke/guble/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smancke/guble/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smancke/guble/git/refs{/sha}","trees_url":"https://api.github.com/repos/smancke/guble/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smancke/guble/statuses/{sha}","languages_url":"https://api.github.com/repos/smancke/guble/languages","stargazers_url":"https://api.github.com/repos/smancke/guble/stargazers","contributors_url":"https://api.github.com/repos/smancke/guble/contributors","subscribers_url":"https://api.github.com/repos/smancke/guble/subscribers","subscription_url":"https://api.github.com/repos/smancke/guble/subscription","commits_url":"https://api.github.com/repos/smancke/guble/commits{/sha}","git_commits_url":"https://api.github.com/repos/smancke/guble/git/commits{/sha}","comments_url":"https://api.github.com/repos/smancke/guble/comments{/number}","issue_comment_url":"https://api.github.com/repos/smancke/guble/issues/comments{/number}","contents_url":"https://api.github.com/repos/smancke/guble/contents/{+path}","compare_url":"https://api.github.com/repos/smancke/guble/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smancke/guble/merges","archive_url":"https://api.github.com/repos/smancke/guble/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smancke/guble/downloads","issues_url":"https://api.github.com/repos/smancke/guble/issues{/number}","pulls_url":"https://api.github.com/repos/smancke/guble/pulls{/number}","milestones_url":"https://api.github.com/repos/smancke/guble/milestones{/number}","notifications_url":"https://api.github.com/repos/smancke/guble/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smancke/guble/labels{/name}","releases_url":"https://api.github.com/repos/smancke/guble/releases{/id}","deployments_url":"https://api.github.com/repos/smancke/guble/deployments","created_at":"2015-11-15T20:32:42Z","updated_at":"2016-06-11T16:00:56Z","pushed_at":"2016-06-13T06:51:48Z","git_url":"git://github.com/smancke/guble.git","ssh_url":"git@github.com:smancke/guble.git","clone_url":"https://github.com/smancke/guble.git","svn_url":"https://github.com/smancke/guble","homepage":null,"size":674,"stargazers_count":24,"watchers_count":24,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":14,"forks":4,"open_issues":14,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/smancke/guble/pulls/103"},"html":{"href":"https://github.com/smancke/guble/pull/103"},"issue":{"href":"https://api.github.com/repos/smancke/guble/issues/103"},"comments":{"href":"https://api.github.com/repos/smancke/guble/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/smancke/guble/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/smancke/guble/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/smancke/guble/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/smancke/guble/statuses/53c44307bff286dd071328efd04b4290eb537f8a"}}}}
{"actor":{"display_login":"Bogh"}}