{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5444","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5444/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5444/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5444/events","html_url":"https://github.com/ManageIQ/manageiq/pull/5444","id":116862843,"number":5444,"title":"Create MiqAeMethodService::Deprecation for automation deprecations","user":{"login":"bdunne","id":651659,"avatar_url":"https://avatars.githubusercontent.com/u/651659?v=3","gravatar_id":"","url":"https://api.github.com/users/bdunne","html_url":"https://github.com/bdunne","followers_url":"https://api.github.com/users/bdunne/followers","following_url":"https://api.github.com/users/bdunne/following{/other_user}","gists_url":"https://api.github.com/users/bdunne/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunne/subscriptions","organizations_url":"https://api.github.com/users/bdunne/orgs","repos_url":"https://api.github.com/users/bdunne/repos","events_url":"https://api.github.com/users/bdunne/events{/privacy}","received_events_url":"https://api.github.com/users/bdunne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-13T22:06:40Z","updated_at":"2015-11-13T22:12:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/5444","html_url":"https://github.com/ManageIQ/manageiq/pull/5444","diff_url":"https://github.com/ManageIQ/manageiq/pull/5444.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/5444.patch"},"body":"Refactor Vmdb::Deprecation to allow others to inherit from it and easily change the logger\r\n\r\n```\r\nirb(main):001:0> MiqAeMethodService::Deprecation.deprecation_warning(\"aaaaa\", \"bbbbb\")\r\nDEPRECATION WARNING: aaaaa is deprecated and will be removed from ManageIQ D-release (bbbbb). (called from irb_binding at (irb):2)\r\n=> \"aaaaa is deprecated and will be removed from ManageIQ D-release (bbbbb)\"\r\n\r\n-------------------------\r\n==> log/evm.log <==\r\n[----] I, [2015-11-13T16:59:07.204905 #22250:3ff85d399988]  INFO -- : MIQ(Vmdb::Loggers.apply_config) Log level for vim.log has been changed to [WARN]\r\n[----] I, [2015-11-13T16:59:08.149577 #22250:3ff85d399988]  INFO -- : MIQ(Vmdb::Initializer.init) - Program Name: bin/rails, PID: 22250, ENV['MIQ_GUID']: , ENV['EVMSERVER']: \r\n[----] W, [2015-11-13T16:59:21.779492 #22250:3ff85d399988]  WARN -- : <AutomationEngine> DEPRECATION WARNING: aaaaa is deprecated and will be removed from ManageIQ D-release (bbbbb). (called from irb_binding at (irb):1)\r\n\r\n==> log/automation.log <==\r\n[----] W, [2015-11-13T16:59:21.779689 #22250:3ff85d399988]  WARN -- : DEPRECATION WARNING: aaaaa is deprecated and will be removed from ManageIQ D-release (bbbbb). (called from irb_binding at (irb):1)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/156573376","html_url":"https://github.com/ManageIQ/manageiq/pull/5444#issuecomment-156573376","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5444","id":156573376,"user":{"login":"bdunne","id":651659,"avatar_url":"https://avatars.githubusercontent.com/u/651659?v=3","gravatar_id":"","url":"https://api.github.com/users/bdunne","html_url":"https://github.com/bdunne","followers_url":"https://api.github.com/users/bdunne/followers","following_url":"https://api.github.com/users/bdunne/following{/other_user}","gists_url":"https://api.github.com/users/bdunne/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunne/subscriptions","organizations_url":"https://api.github.com/users/bdunne/orgs","repos_url":"https://api.github.com/users/bdunne/repos","events_url":"https://api.github.com/users/bdunne/events{/privacy}","received_events_url":"https://api.github.com/users/bdunne/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T22:12:06Z","updated_at":"2015-11-13T22:12:06Z","body":"@gmcculloug Now you can use `MiqAeMethodService::Deprecation.deprecation_warning`  and it will log only to the `$miq_ae_logger` (and STDERR in dev mode) which should help you find callers using context clues in the log."}}