-
Notifications
You must be signed in to change notification settings - Fork 368
Description
I am trying to reduce logs from CF and I have found that CC ignores settings for DB operations
I use CF V230
-1. go to api machine
-2. open /var/vcap/jobs/cloud_controller_ng/config/cloud_controller_ng.yml and change loglevel
db: &db
database: postgres://ccadmin:password@192.168.111.16:5524/ccdb
max_connections: 25
pool_timeout: 10
log_level: fatal
-3. check logfile /var/vcap/sys/log/cloud_controller_ng/cloud_controller_ng.log
There is a lot of messages with log level fatal
Even if I change to error or info nothing happened and I still can see a lot of messages like this:
{"timestamp":1460121236.5210814,"message":"(0.000533s) SELECT * FROM "delayed_jobs" WHERE (((("run_at" <= '2016-04-08 13:13:56.519899+0000') AND ("locked_at" IS NULL)) OR ("locked_by" = 'cc_api_worker.api_z2.0.1')) AND ("failed_at" IS NULL) AND ("queue" IN ('cc-api_z2-0'))) ORDER BY "priority" ASC, "run_at" ASC LIMIT 5","log_level":"fatal","source":"cc.background","data":{},"thread_id":47458667846040,"fiber_id":47458708540280,"process_id":24480,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.2.0/gems/sequel-4.29.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
{"timestamp":1460120984.43897,"message":"(0.000553s) SELECT * FROM "delayed_jobs" WHERE (((("run_at" <= '2016-04-08 13:09:44.437743+0000') AND ("locked_at" IS NULL)) OR ("locked_by" = 'cc_api_worker.api_z2.0.1')) AND ("failed_at" IS NULL) AND ("queue" IN ('cc-api_z2-0'))) ORDER BY "priority" ASC, "run_at" ASC LIMIT 5","log_level":"error","source":"cc.background","data":{},"thread_id":46939921660300,"fiber_id":46939962348880,"process_id":23233,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.2.0/gems/sequel-4.29.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
I think this messages shoud be only in debug or trace, not in info/error and sure not in fatal