{"action":"created","issue":{"url":"https://api.github.com/repos/resque/resque/issues/1141","labels_url":"https://api.github.com/repos/resque/resque/issues/1141/labels{/name}","comments_url":"https://api.github.com/repos/resque/resque/issues/1141/comments","events_url":"https://api.github.com/repos/resque/resque/issues/1141/events","html_url":"https://github.com/resque/resque/issues/1141","id":21055080,"number":1141,"title":"VERBOSE and VVERBOSE behavior change in 1.x stable","user":{"login":"joshuaflanagan","id":81455,"avatar_url":"https://avatars.githubusercontent.com/u/81455?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuaflanagan","html_url":"https://github.com/joshuaflanagan","followers_url":"https://api.github.com/users/joshuaflanagan/followers","following_url":"https://api.github.com/users/joshuaflanagan/following{/other_user}","gists_url":"https://api.github.com/users/joshuaflanagan/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuaflanagan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuaflanagan/subscriptions","organizations_url":"https://api.github.com/users/joshuaflanagan/orgs","repos_url":"https://api.github.com/users/joshuaflanagan/repos","events_url":"https://api.github.com/users/joshuaflanagan/events{/privacy}","received_events_url":"https://api.github.com/users/joshuaflanagan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/resque/resque/labels/Bug","name":"Bug","color":"ff0000"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/resque/resque/milestones/4","html_url":"https://github.com/resque/resque/milestones/1.26.0","labels_url":"https://api.github.com/repos/resque/resque/milestones/4/labels","id":1498568,"number":4,"title":"1.26.0","description":"","creator":{"login":"steveklabnik","id":27786,"avatar_url":"https://avatars.githubusercontent.com/u/27786?v=3","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2016-01-11T23:58:47Z","updated_at":"2016-01-12T00:47:30Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2013-10-16T01:19:44Z","updated_at":"2016-01-15T15:34:33Z","closed_at":null,"body":"I'm trying to understand why the behavior of the VERBOSE and VVERBOSE environment variables changed, and if it was intentional.\r\n\r\nIn the past, those environment variables controlled the level of logging (some messages would not be logged unless you set VVERBOSE). Now, they just control the format of the log messages.\r\n\r\nI understand the move away from `#verbose` and `#very_verbose` methods toward using a Logger with level. However, it isn't clear why the environment variables still interact with the deprecated methods instead of setting the `Logger.level`.\r\n\r\nI would expect VERBOSE=1 to set `Logger.level` to `info` and VVERBOSE=1 to set `Logger.level` to `debug`. That would more closely match the previous logic.\r\n\r\nFor example, before the logging overhaul, when you set VERBOSE=1, you would see messages when jobs were picked up, but you wouldn't see the `Checking queueA` and `Sleeping for 5.0 seconds` messages. You only saw those if you set VVERBOSE=1.\r\n\r\nNow you always see those messages, even if you just set VERBOSE=1.\r\n\r\nBeing able to vary the level of logging via environment variables was very useful. Being able to vary the format of the log messages via environment variables is not.\r\n\r\nIs there a way to vary the log level via environment variables with the new approach?\r\n\r\nWould you be open to a PR that restores the original environment variable behavior (using the new `Resque.Logger` of course)?\r\n"},"comment":{"url":"https://api.github.com/repos/resque/resque/issues/comments/171992869","html_url":"https://github.com/resque/resque/issues/1141#issuecomment-171992869","issue_url":"https://api.github.com/repos/resque/resque/issues/1141","id":171992869,"user":{"login":"Jacobkg","id":487216,"avatar_url":"https://avatars.githubusercontent.com/u/487216?v=3","gravatar_id":"","url":"https://api.github.com/users/Jacobkg","html_url":"https://github.com/Jacobkg","followers_url":"https://api.github.com/users/Jacobkg/followers","following_url":"https://api.github.com/users/Jacobkg/following{/other_user}","gists_url":"https://api.github.com/users/Jacobkg/gists{/gist_id}","starred_url":"https://api.github.com/users/Jacobkg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jacobkg/subscriptions","organizations_url":"https://api.github.com/users/Jacobkg/orgs","repos_url":"https://api.github.com/users/Jacobkg/repos","events_url":"https://api.github.com/users/Jacobkg/events{/privacy}","received_events_url":"https://api.github.com/users/Jacobkg/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T15:34:33Z","updated_at":"2016-01-15T15:34:33Z","body":"@steveklabnik Cool, I think I know what to do. Working on a PR"}}