Packit-service: celery should log less

Created on 6 Jun 2019  路  3Comments  路  Source: packit/packit-service

It seems that celery has some crazy logging on by default: complete http response data are being logged:

[2019-06-06 12:52:30,789: DEBUG/ForkPoolWorker-1] https://src.fedoraproject.org:443 "GET /modules/pretty-git-prompt/raw/rolling/f/.packit.json HTTP/1.1" 404 3327
[2019-06-06 12:52:30,790: DEBUG/ForkPoolWorker-1] 
<!DOCTYPE html>
<html lang='en'>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Page not found :'( - src.fedoraproject.org</title>
        <link rel="shortcut icon" type="image/vnd.microsoft.icon"
        href="/theme/static/favicon.ico?version=5.5"/>
    <link href="/theme/static/fedora-bootstrap-1.3.0/fedora-bootstrap.min.css?version=5.5"
        type="text/css" rel="stylesheet" />
    <link href="/theme/static/fonts/fonts.css?version=5.5"
        rel="stylesheet" type="text/css" />
    <link href="/theme/static/fonts/hack_fonts/css/hack-extended.min.css?version=5.5"
        type="text/css" rel="stylesheet" />
    <link href="/theme/static/theme.css?version=5.5"
        type="text/css" rel="stylesheet" />

    <link href="/static/pagure.css?version=5.5"
    type="text/css" rel="stylesheet" />
    <link href="/static/vendor/font-awesome/font-awesome.css?version=5.5"
    type="text/css" rel="stylesheet" />
  </head>
  <body id="error">

    <!-- start masthead -->

would be nice to get rid of it

the action here is to configure logging in celery so that:

  • logs from requests python package are ignored (or urllib3, not sure where it's coming from)
  • also get rid of these lines in logs: [2019-07-10 13:22:22,017: DEBUG/MainProcess] pidbox received method enable_events() [reply_to:None ticket:None]
bug user-experience

All 3 comments

I'll pay for a dinner if you fix this.

I'll pay for a dinner if you fix this.

We should create a new label: reward-included :D

That's a challenge. Wait for a new sprint and I will fix it :)

Was this page helpful?
0 / 5 - 0 ratings