Learn more about these different git repos.
Other Git URLs
When gunicorn is used, the default logging settings we have causing info and debug messages to get returned for example during git push:
git push
opensuse@ip-172-31-64-40:~/tmp/kernel-source> git push origin test_branch Enumerating objects: 4, done. Counting objects: 100% (4/4), done. Delta compression using up to 8 threads Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 297 bytes | 297.00 KiB/s, done. Total 3 (delta 1), reused 0 (delta 0), pack-reused 0 remote: 2024-05-28 19:29:38,001 [INFO] pagure.lib.git_auth: Looking for backend: pagure remote: 2024-05-28 19:29:38,001 [INFO] pagure.lib.git_auth: Looking for backend: pagure remote: 2024-05-28 19:29:38,007 [DEBUG] pagure.lib.git_auth: Found the following installed helpers {'test_auth': EntryPoint.parse('test_auth = pagure.lib.git_auth:GitAuthTestHelper'), 'gitolite2': EntryPoint.parse('gitolite2 = pagure.lib.git_auth:Gitolite2Auth'), 'gitolite3': EntryPoint.parse('gitolite3 = pagure.lib.git_auth:Gitolite3Auth'), 'pagure': EntryPoint.parse('pagure = pagure.lib.git_auth:PagureGitAuth'), 'pagure_authorized_keys': EntryPoint.parse('pagure_authorized_keys = pagure.lib.git_auth:PagureGitAuth')} remote: 2024-05-28 19:29:38,007 [DEBUG] pagure.lib.git_auth: Found the following installed helpers {'test_auth': EntryPoint.parse('test_auth = pagure.lib.git_auth:GitAuthTestHelper'), 'gitolite2': EntryPoint.parse('gitolite2 = pagure.lib.git_auth:Gitolite2Auth'), 'gitolite3': EntryPoint.parse('gitolite3 = pagure.lib.git_auth:Gitolite3Auth'), 'pagure': EntryPoint.parse('pagure = pagure.lib.git_auth:PagureGitAuth'), 'pagure_authorized_keys': EntryPoint.parse('pagure_authorized_keys = pagure.lib.git_auth:PagureGitAuth')} remote: 2024-05-28 19:29:38,117 [DEBUG] pagure.lib.git_auth: Returning helper <class 'pagure.lib.git_auth.PagureGitAuth'> from backend key 'pagure' remote: 2024-05-28 19:29:38,117 [DEBUG] pagure.lib.git_auth: Returning helper <class 'pagure.lib.git_auth.PagureGitAuth'> from backend key 'pagure' remote: 2024-05-28 19:29:38,123 [DEBUG] pagure.utils: User is a committer remote: 2024-05-28 19:29:38,123 [DEBUG] pagure.utils: User is a committer remote: Has commit access: True remote: 2024-05-28 19:29:39,919 [INFO] pagure.lib.git_auth: Looking for backend: pagure remote: 2024-05-28 19:29:39,919 [INFO] pagure.lib.git_auth: Looking for backend: pagure remote: 2024-05-28 19:29:39,925 [DEBUG] pagure.lib.git_auth: Found the following installed helpers {'test_auth': EntryPoint.parse('test_auth = pagure.lib.git_auth:GitAuthTestHelper'), 'gitolite2': EntryPoint.parse('gitolite2 = pagure.lib.git_auth:Gitolite2Auth'), 'gitolite3': EntryPoint.parse('gitolite3 = pagure.lib.git_auth:Gitolite3Auth'), 'pagure': EntryPoint.parse('pagure = pagure.lib.git_auth:PagureGitAuth'), 'pagure_authorized_keys': EntryPoint.parse('pagure_authorized_keys = pagure.lib.git_auth:PagureGitAuth')} remote: 2024-05-28 19:29:39,925 [DEBUG] pagure.lib.git_auth: Found the following installed helpers {'test_auth': EntryPoint.parse('test_auth = pagure.lib.git_auth:GitAuthTestHelper'), 'gitolite2': EntryPoint.parse('gitolite2 = pagure.lib.git_auth:Gitolite2Auth'), 'gitolite3': EntryPoint.parse('gitolite3 = pagure.lib.git_auth:Gitolite3Auth'), 'pagure': EntryPoint.parse('pagure = pagure.lib.git_auth:PagureGitAuth'), 'pagure_authorized_keys': EntryPoint.parse('pagure_authorized_keys = pagure.lib.git_auth:PagureGitAuth')} remote: 2024-05-28 19:29:40,034 [DEBUG] pagure.lib.git_auth: Returning helper <class 'pagure.lib.git_auth.PagureGitAuth'> from backend key 'pagure' remote: 2024-05-28 19:29:40,034 [DEBUG] pagure.lib.git_auth: Returning helper <class 'pagure.lib.git_auth.PagureGitAuth'> from backend key 'pagure' remote: 2024-05-28 19:29:40,040 [DEBUG] pagure.utils: User is a committer remote: 2024-05-28 19:29:40,040 [DEBUG] pagure.utils: User is a committer remote: Has commit access: True remote: 2024-05-28 19:29:41,942 [INFO] pagure.lib.git_auth: Looking for backend: pagure remote: 2024-05-28 19:29:41,942 [INFO] pagure.lib.git_auth: Looking for backend: pagure remote: 2024-05-28 19:29:41,949 [DEBUG] pagure.lib.git_auth: Found the following installed helpers {'test_auth': EntryPoint.parse('test_auth = pagure.lib.git_auth:GitAuthTestHelper'), 'gitolite2': EntryPoint.parse('gitolite2 = pagure.lib.git_auth:Gitolite2Auth'), 'gitolite3': EntryPoint.parse('gitolite3 = pagure.lib.git_auth:Gitolite3Auth'), 'pagure': EntryPoint.parse('pagure = pagure.lib.git_auth:PagureGitAuth'), 'pagure_authorized_keys': EntryPoint.parse('pagure_authorized_keys = pagure.lib.git_auth:PagureGitAuth')} remote: 2024-05-28 19:29:41,949 [DEBUG] pagure.lib.git_auth: Found the following installed helpers {'test_auth': EntryPoint.parse('test_auth = pagure.lib.git_auth:GitAuthTestHelper'), 'gitolite2': EntryPoint.parse('gitolite2 = pagure.lib.git_auth:Gitolite2Auth'), 'gitolite3': EntryPoint.parse('gitolite3 = pagure.lib.git_auth:Gitolite3Auth'), 'pagure': EntryPoint.parse('pagure = pagure.lib.git_auth:PagureGitAuth'), 'pagure_authorized_keys': EntryPoint.parse('pagure_authorized_keys = pagure.lib.git_auth:PagureGitAuth')} remote: 2024-05-28 19:29:42,057 [DEBUG] pagure.lib.git_auth: Returning helper <class 'pagure.lib.git_auth.PagureGitAuth'> from backend key 'pagure' remote: 2024-05-28 19:29:42,057 [DEBUG] pagure.lib.git_auth: Returning helper <class 'pagure.lib.git_auth.PagureGitAuth'> from backend key 'pagure' remote: 2024-05-28 19:29:42,217 [INFO] pagure.lib.notify: Sending blinker signal to: pagure - topic: git.branch.creation remote: 2024-05-28 19:29:42,217 [INFO] pagure.lib.notify: Sending blinker signal to: pagure - topic: git.branch.creation remote: Sending to redis to send commit notification emails remote: * Publishing information for 1 commits remote: 2024-05-28 19:29:42,301 [INFO] pagure.lib.notify: Sending blinker signal to: pagure - topic: git.receive remote: 2024-05-28 19:29:42,301 [INFO] pagure.lib.notify: Sending blinker signal to: pagure - topic: git.receive To ssh://code.opensuse.org/forks/wombelix/kernel/kernel-source.git * [new branch] test_branch -> test_branch
Given that our git backend is implemented in python, this also happens via ssh. It looks like that an Apache + mod_wsgi setup abstracts that behavior silently away.
So the logging defaults and the recommendations should be improved with the different deployment scenarios in mind. Logging output when interacting with pagure is pretty annoying.
A setting in our default config I suspect to be related: https://pagure.io/pagure/blob/master/f/pagure/default_config.py#_439
Log in to comment on this ticket.