{"action":"created","issue":{"url":"https://api.github.com/repos/PerlDancer/Dancer/issues/789","labels_url":"https://api.github.com/repos/PerlDancer/Dancer/issues/789/labels{/name}","comments_url":"https://api.github.com/repos/PerlDancer/Dancer/issues/789/comments","events_url":"https://api.github.com/repos/PerlDancer/Dancer/issues/789/events","html_url":"https://github.com/PerlDancer/Dancer/issues/789","id":4424697,"number":789,"title":"Warnings do not show up in log output when they are fatal","user":{"login":"Corion","id":142199,"avatar_url":"https://avatars.githubusercontent.com/u/142199?v=3","gravatar_id":"","url":"https://api.github.com/users/Corion","html_url":"https://github.com/Corion","followers_url":"https://api.github.com/users/Corion/followers","following_url":"https://api.github.com/users/Corion/following{/other_user}","gists_url":"https://api.github.com/users/Corion/gists{/gist_id}","starred_url":"https://api.github.com/users/Corion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Corion/subscriptions","organizations_url":"https://api.github.com/users/Corion/orgs","repos_url":"https://api.github.com/users/Corion/repos","events_url":"https://api.github.com/users/Corion/events{/privacy}","received_events_url":"https://api.github.com/users/Corion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2012-05-04T14:27:15Z","updated_at":"2015-05-19T07:37:48Z","closed_at":null,"body":"When your code (or code beyond your control) outputs a warning, and you have the setting \"warnings: 1\" to make warnings fatal, you get an entry in the log output like\r\n\r\n    [4876]  core @0.008038> [hit #23]response: 500 in C:/strawberry/perl/site/lib/Dancer/Handler.pm l. 179\r\n\r\nbut no helpfull information at all. The log output should at least include the generated warnings that led up to the fatal error. In fact, whenever Dancer outputs a 500 error, it should include a reason that gets written to the log.\r\n\r\ndevelopment.yml:\r\n    # configuration file for development environment\r\n\r\n    # the logger engine to use\r\n    # console: log messages to STDOUT (your console where you started the\r\n    #          application server)\r\n    # file:    log message to a file in log/\r\n    logger: \"console\"\r\n\r\n    # the log level for this environement\r\n    # core is the lowest, it shows Dancer's core log messages as well as yours\r\n    # (debug, warning and error)\r\n    log: \"core\"\r\n\r\n    # should Dancer consider warnings as critical errors?\r\n    warnings: 1\r\n\r\n    # should Dancer show a stacktrace when an error is caught?\r\n    show_errors: 1\r\n\r\n    # auto_reload is a development and experimental feature\r\n    # you should enable it by yourself if you want it\r\n    # Module::Refresh is needed \r\n    # \r\n    # Be aware it's unstable and may cause a memory leak.\r\n    # DO NOT EVER USE THAT FEATURE IN PRODUCTION \r\n    # OR TINY KITTENS SHALL DIE WITH LOTS OF SUFFERING\r\n    auto_reload: 0\r\n\r\n    session: 'simple'\r\n"},"comment":{"url":"https://api.github.com/repos/PerlDancer/Dancer/issues/comments/103381374","html_url":"https://github.com/PerlDancer/Dancer/issues/789#issuecomment-103381374","issue_url":"https://api.github.com/repos/PerlDancer/Dancer/issues/789","id":103381374,"user":{"login":"leegee","id":512816,"avatar_url":"https://avatars.githubusercontent.com/u/512816?v=3","gravatar_id":"","url":"https://api.github.com/users/leegee","html_url":"https://github.com/leegee","followers_url":"https://api.github.com/users/leegee/followers","following_url":"https://api.github.com/users/leegee/following{/other_user}","gists_url":"https://api.github.com/users/leegee/gists{/gist_id}","starred_url":"https://api.github.com/users/leegee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leegee/subscriptions","organizations_url":"https://api.github.com/users/leegee/orgs","repos_url":"https://api.github.com/users/leegee/repos","events_url":"https://api.github.com/users/leegee/events{/privacy}","received_events_url":"https://api.github.com/users/leegee/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T07:37:48Z","updated_at":"2015-05-19T07:37:48Z","body":":+1: "}}