Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct default log format? #317

Closed
stugots opened this issue Feb 7, 2011 · 1 comment
Closed

Correct default log format? #317

stugots opened this issue Feb 7, 2011 · 1 comment

Comments

@stugots
Copy link

stugots commented Feb 7, 2011

[This may be entirely my own PEBKAC, and not a bug.]

After I upgraded from 2.1.4 to 2.2.2, I didn't see some expected information in my logging output.

My code doesn't modify CELERYD_LOG_FORMAT or CELERYD_TASK_LOG_FORMAT. And yet, the logging output does not contain the task name or id.

My (2.2.2) code makes the log calls thus:

class ClassBulkImport(AbortableTask):
    accept_magic_kwargs = False
    ignore_result = True
    @transaction.commit_manually
     def run(self):
         task_id = self.request.id
         # Turn on logging
         logger = self.get_logger()
         logger.info("Entry")

And what I see in celery.log is:

[2011-02-04 10:46:00,152: INFO/PoolWorker-6] Entry

The docs say that the default format is [%(asctime)s: %(levelname)s/%(processName)s][%(task_name)s(%(task_id)s)]%(message)s. Is this a known change in Celery's logging behavior? If not, can you suggest where I ought to look in the code?

@ask
Copy link
Contributor

ask commented Feb 11, 2011

Task logger format accidentally not used anymore. Closed by 324b37a. Thanks to stugots

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants