Task logging levels should be configurable

Bug #1037969 reported by Lars Butler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Fix Released
Medium
Lars Butler

Bug Description

Related to the nhlib-integration branch: https://github.com/gem/oq-engine/tree/nhlib-integration

We have a decorator called '@oqtask' which is responsible for--among other things--initializing AMQP loggers to be used by celery task code.

At the moment, the log level is hard-coded to 'debug'. This should really be set to the `--log-level` specified when the job is run. This means we should probably store the log level in the oq_job table. (Since the oq_job represents the runtime information about the calculation attempt, I think this is a good place for it. Additionally, the @oqtask decorator is already querying the oq_job from the database to check the status.)

Changed in openquake:
assignee: nobody → Lars Butler (lars-butler)
milestone: none → 0.8.2
importance: Undecided → Medium
status: New → Confirmed
Changed in openquake:
status: Confirmed → In Progress
Revision history for this message
Lars Butler (lars-butler) wrote :
Changed in openquake:
status: In Progress → Fix Committed
Changed in openquake:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.