fault source creation failure
Bug #972202 reported by
Ben Wyss
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
Medium
|
Matteo Nastasi |
Bug Description
The Fault Source generation function ( https:/
Also as part of this bug, we need to add a more meaning full message to the fault source generation error message that is passed on to the end user in the UI.
Currently the error message reads fault source generated, or fault source generation failed. But it should report why the fault source could not be generated.
Changed in openquake: | |
status: | New → In Progress |
Changed in openquake: | |
assignee: | nobody → matley (matley) |
Changed in openquake: | |
status: | In Progress → New |
Changed in openquake: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I have added logging to Django by adding to local_settings.py:
#Logging dirname( __file_ _) join(LOG_ DIR, "django.log")
ROOT_PATH = os.path.
LOG_DIR = "/var/log/geonode/"
LOG_FILE = os.path.
log = logging. getLogger( "django" ) Formatter( "%(asctime) s - %(name)s - %(levelname)s - %(message)s")
log.level = logging.DEBUG
formatter = logging.
# log to file FileHandler( LOG_FILE) (formatter)
fh = logging.
fh.setFormatter
log.addHandler(fh)
Then in utils.py I added:
import logging getLogger( "django. feeds.utils" )
log = logging.
and in a function:
...log.debug("d'a fault source name %s" % faultsource.fault)
...
Then, in /var/log/ geonode/ django. log I can follow the logging for django