{"action":"created","issue":{"url":"https://api.github.com/repos/sampsyo/beets/issues/1361","labels_url":"https://api.github.com/repos/sampsyo/beets/issues/1361/labels{/name}","comments_url":"https://api.github.com/repos/sampsyo/beets/issues/1361/comments","events_url":"https://api.github.com/repos/sampsyo/beets/issues/1361/events","html_url":"https://github.com/sampsyo/beets/pull/1361","id":62527135,"number":1361,"title":"Fixed issue #496 - sanitize/truncate bug","user":{"login":"LordSputnik","id":1898174,"avatar_url":"https://avatars.githubusercontent.com/u/1898174?v=3","gravatar_id":"","url":"https://api.github.com/users/LordSputnik","html_url":"https://github.com/LordSputnik","followers_url":"https://api.github.com/users/LordSputnik/followers","following_url":"https://api.github.com/users/LordSputnik/following{/other_user}","gists_url":"https://api.github.com/users/LordSputnik/gists{/gist_id}","starred_url":"https://api.github.com/users/LordSputnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LordSputnik/subscriptions","organizations_url":"https://api.github.com/users/LordSputnik/orgs","repos_url":"https://api.github.com/users/LordSputnik/repos","events_url":"https://api.github.com/users/LordSputnik/events{/privacy}","received_events_url":"https://api.github.com/users/LordSputnik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-17T21:55:50Z","updated_at":"2015-07-07T14:35:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sampsyo/beets/pulls/1361","html_url":"https://github.com/sampsyo/beets/pull/1361","diff_url":"https://github.com/sampsyo/beets/pull/1361.diff","patch_url":"https://github.com/sampsyo/beets/pull/1361.patch"},"body":"Added loop to iterate over sanitize/truncate until stable. Enabled test_truncation_does_not_conflict_with_replacement test. See discussion in #496."},"comment":{"url":"https://api.github.com/repos/sampsyo/beets/issues/comments/119223411","html_url":"https://github.com/sampsyo/beets/pull/1361#issuecomment-119223411","issue_url":"https://api.github.com/repos/sampsyo/beets/issues/1361","id":119223411,"user":{"login":"sampsyo","id":188033,"avatar_url":"https://avatars.githubusercontent.com/u/188033?v=3","gravatar_id":"","url":"https://api.github.com/users/sampsyo","html_url":"https://github.com/sampsyo","followers_url":"https://api.github.com/users/sampsyo/followers","following_url":"https://api.github.com/users/sampsyo/following{/other_user}","gists_url":"https://api.github.com/users/sampsyo/gists{/gist_id}","starred_url":"https://api.github.com/users/sampsyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampsyo/subscriptions","organizations_url":"https://api.github.com/users/sampsyo/orgs","repos_url":"https://api.github.com/users/sampsyo/repos","events_url":"https://api.github.com/users/sampsyo/events{/privacy}","received_events_url":"https://api.github.com/users/sampsyo/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T14:35:51Z","updated_at":"2015-07-07T14:35:51Z","body":"That sounds like the perfect place for the docs warning.\r\n\r\nAnd yes, there is a logging system. For example: https://github.com/sampsyo/beets/blob/master/beets/library.py#L612\r\nThe only trick is that we try to keep the util module log-free (just pure utilities). So we may need to either move some code or return a flag so we can log the message from library.py."}}