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

Add Sentry #14

Merged
merged 1 commit into from
Feb 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function registerBundles()
new MarcW\RssWriter\Bundle\MarcWRssWriterBundle(),
new KnpU\OAuth2ClientBundle\KnpUOAuth2ClientBundle(),
new Swarrot\SwarrotBundle\SwarrotBundle(),
new Sentry\SentryBundle\SentryBundle(),
new AppBundle\AppBundle(),
];

Expand Down
14 changes: 12 additions & 2 deletions app/config/config_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,20 @@ monolog:
main:
type: fingers_crossed
action_level: error
handler: nested
nested:
handler: grouped_main
grouped_main:
type: group
members: [streamed_main, sentry]
streamed_main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
sentry:
type: raven
dsn: "%sentry_dsn%"
level: error
console:
type: console

sentry:
dsn: "%sentry_dsn%"
2 changes: 2 additions & 0 deletions app/config/parameters.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ parameters:
rabbitmq_port: 5672
rabbitmq_login: 'guest'
rabbitmq_password: 'guest'

sentry_dsn: https://xxx:[email protected]/666
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"swarrot/swarrot-bundle": "^1.4",
"php-amqplib/php-amqplib": "^2.6",
"twig/extensions": "^1.4",
"doctrine/doctrine-migrations-bundle": "^1.2"
"doctrine/doctrine-migrations-bundle": "^1.2",
"sentry/sentry-symfony": "^0.7.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "~2.0",
Expand Down
117 changes: 116 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.