{"action":"created","issue":{"url":"https://api.github.com/repos/celery/celery/issues/3113","repository_url":"https://api.github.com/repos/celery/celery","labels_url":"https://api.github.com/repos/celery/celery/issues/3113/labels{/name}","comments_url":"https://api.github.com/repos/celery/celery/issues/3113/comments","events_url":"https://api.github.com/repos/celery/celery/issues/3113/events","html_url":"https://github.com/celery/celery/issues/3113","id":140150903,"number":3113,"title":"Celery loglevel","user":{"login":"jomach","id":4804546,"avatar_url":"https://avatars.githubusercontent.com/u/4804546?v=3","gravatar_id":"","url":"https://api.github.com/users/jomach","html_url":"https://github.com/jomach","followers_url":"https://api.github.com/users/jomach/followers","following_url":"https://api.github.com/users/jomach/following{/other_user}","gists_url":"https://api.github.com/users/jomach/gists{/gist_id}","starred_url":"https://api.github.com/users/jomach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jomach/subscriptions","organizations_url":"https://api.github.com/users/jomach/orgs","repos_url":"https://api.github.com/users/jomach/repos","events_url":"https://api.github.com/users/jomach/events{/privacy}","received_events_url":"https://api.github.com/users/jomach/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/celery/celery/labels/Component:%20Logging","name":"Component: Logging","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-11T10:41:45Z","updated_at":"2016-03-15T19:59:40Z","closed_at":null,"body":"Hello guys, \r\n\r\nWenn I run celery with : \r\n\r\ncelery worker --loglevel=info --app=reds.tasks:app --environment=dev --local=True -Q celery,high_priority_queue,normal_priority_queue,low_priority_queue\r\n\r\nwenn a task comes in i get  : [2016-03-11 11:33:23,914: DEBUG/MainProcess] TaskPool\r\n\r\nWhy is this happening ? It shouldn't because I started it with loglevel info. the problem is that  for every task that comes to the task pool all the args are dumped, some times in the args are sensitive information.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/celery/celery/issues/comments/196997719","html_url":"https://github.com/celery/celery/issues/3113#issuecomment-196997719","issue_url":"https://api.github.com/repos/celery/celery/issues/3113","id":196997719,"user":{"login":"jomach","id":4804546,"avatar_url":"https://avatars.githubusercontent.com/u/4804546?v=3","gravatar_id":"","url":"https://api.github.com/users/jomach","html_url":"https://github.com/jomach","followers_url":"https://api.github.com/users/jomach/followers","following_url":"https://api.github.com/users/jomach/following{/other_user}","gists_url":"https://api.github.com/users/jomach/gists{/gist_id}","starred_url":"https://api.github.com/users/jomach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jomach/subscriptions","organizations_url":"https://api.github.com/users/jomach/orgs","repos_url":"https://api.github.com/users/jomach/repos","events_url":"https://api.github.com/users/jomach/events{/privacy}","received_events_url":"https://api.github.com/users/jomach/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T19:59:40Z","updated_at":"2016-03-15T19:59:40Z","body":"Hi, \r\n\r\nSo the whole workers are fine.  It is only really this message showing up.  So probably a Bug ? \r\n\r\nRegards.\r\n\r\n\r\n> Am 15.03.2016 um 19:31 schrieb Ask Solem Hoel <notifications@github.com>:\r\n> \r\n> Logging is tricky to get right, and there are many libraries out there not following best practices.\r\n> Most likely some library is setting the loglevel of the root logger.\r\n> \r\n> If the root loglevel is DEBUG there should be lots of debug messages at startup, not just\r\n> this message. If it's only this message, then it may a bug in celery.\r\n> \r\n> If all loggers are configured as DEBUG you would need to find what sets the level.\r\n> The only way to track who sets the level as far as I know, is monkey patching\r\n> logging.Logger.setLevel to print a traceback (you would have to monkey patch this before any libraries are loaded):\r\n> \r\n> import logging, traceback\r\n> class DebugLogger(logging.Logger):\r\n>     def setLevel(self, level):\r\n>         print('>>> SET LEVEL: %r'  % (level,))\r\n>         traceback.print_stack()\r\n>         return super(DebugLogger, self).setLevel(level)\r\n> logging.Logger = DebugLogger\r\n> \r\n> This doesn't account for anything setting `logger.level = DEBUG` directly (bypassing setLevel), and also not `logging.Handler.setLevel` (not sure why that is possible).\r\n> \r\n> There should be lots\r\n> —\r\n> You are receiving this because you modified the open/close state.\r\n> Reply to this email directly or view it on GitHub\r\n> \r\n"}}