For my Rails app, I'm trying to decrease the verbosity of my logs. I've already set the following parameters
production.rb & environment.rb:
config.log_level = :error
And in my heroku config settings:
heroku config:set LOG_LEVEL=ERROR
But my logs are still showing everything at what seems to be info level logs (running heroku logs --source app):
2016-04-07T20:58:23.241659+00:00 app[web.1]: Project Load (0.9ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = 8 LIMIT 1
2016-04-07T20:58:23.166494+00:00 app[web.1]: CACHE (0.0ms) SELECT "images".* FROM "images" WHERE "images"."step_id" = 2507 ORDER BY position ASC LIMIT 1
2016-04-07T20:58:23.239366+00:00 app[web.1]: Collectify Load (0.9ms) SELECT "collectifies".* FROM "collectifies" WHERE "collectifies"."id" = 60 LIMIT 1
2016-04-07T20:58:23.243880+00:00 app[web.1]: Collectify Load (0.8ms) SELECT "collectifies".* FROM "collectifies" WHERE "collectifies"."id" = 30 LIMIT 1
2016-04-07T20:58:23.247228+00:00 app[web.1]: CACHE (0.0ms) SELECT "collectifies".* FROM "collectifies" WHERE "collectifies"."id" = 60 LIMIT 1
2016-04-07T20:58:23.220778+00:00 app[web.1]: CACHE (0.0ms) SELECT COUNT(*) FROM "steps" WHERE "steps"."project_id" = 821
2016-04-07T20:58:23.249435+00:00 app[web.1]: CACHE (0.0ms) SELECT "collectifies".* FROM "collectifies" WHERE "collectifies"."id" = 30 LIMIT 1
2016-04-07T20:58:23.248242+00:00 app[web.1]: CACHE (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = 8 LIMIT 1
2016-04-07T20:58:23.253704+00:00 app[web.1]: CACHE (0.0ms) SELECT "favorite_projects".* FROM "favorite_projects" WHERE "favorite_projects"."id" = 16 LIMIT 1
2016-04-07T20:58:23.254321+00:00 app[web.1]: CACHE (0.0ms) SELECT "favorite_projects".* FROM "favorite_projects" WHERE "favorite_projects"."id" = 16 LIMIT 1
2016-04-07T20:58:23.251866+00:00 app[web.1]: FavoriteProject Load (1.1ms) SELECT "favorite_projects".* FROM "favorite_projects" WHERE "favorite_projects"."id" = 16 LIMIT 1
2016-04-07T20:58:23.255054+00:00 app[web.1]: CACHE (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = 8 LIMIT 1
2016-04-07T20:58:23.258405+00:00 app[web.1]: User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 83 LIMIT 1
2016-04-07T20:58:23.245697+00:00 app[web.1]: CACHE (0.0ms) SELECT "activities".* FROM "activities" WHERE "activities"."recipient_id" = 7 AND "activities"."recipient_type" = 'User' AND (owner_id != recipient_id OR recipient_id IS NULL OR owner_id IS NULL) AND (trackable_type !='Step') ORDER BY created_at DESC
How do I eliminate everything but error logs?
Aucun commentaire:
Enregistrer un commentaire