Remove unneeded OpenSHA logging
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
Undecided
|
Anton Gritsay |
Bug Description
When using a source model with a fault, and CY_2008_AttenRel, the Celery log is flooded by OpenSHA log messages like:
Region:
-9.16622627809039 1.1126727559689
-0.173020382312
-0.1640271764168891 1.6520318919295
-0.1550339705211114 1.6520311699370
-0.146040764625
-0.137047558729
-0.128054352833
-0.1190611469380005 1.6520286889796
-0.110067941042
8.883137954735501 -2.218646392884
8.77306949335472 9.10056940473936 3.0
-9.05259163683597 9.107594032381712 3.0
Projected Trace:
-9.157233072194613 1.1126446305573
-0.1640271764168891 1.6520318919295
-0.1550339705211114 1.6520311699370
-0.146040764625
-0.137047558729
-0.128054352833
-0.1190611469380005 1.6520286889796
-0.110067941042
-0.101074735146
8.892131160631276 -2.218700890679
Region:
-9.157233072194613 1.1126446305573
-0.1640271764168891 1.6520318919295
-0.1550339705211114 1.6520311699370
-0.146040764625
-0.137047558729
-0.128054352833
-0.1190611469380005 1.6520286889796
-0.110067941042
-0.101074735146
8.892131160631276 -2.218700890679
8.781949492161544 9.10078904044293 3.0
-9.043711806948261 9.107367344452205 3.0
Projected Trace:
-9.148239866298836 1.1126165339802
-0.1550339705211114 1.6520311699370
-0.146040764625
-0.137047558729
-0.128054352833
-0.1190611469380005 1.6520286889796
-0.110067941042
-0.101074735146
-0.092081529250
8.901124366527055 -2.218755445814
Region:
-9.148239866298836 1.1126165339802
-0.1550339705211114 1.6520311699370
-0.146040764625
-0.137047558729
-0.128054352833
-0.1190611469380005 1.6520286889796
-0.110067941042
-0.101074735146
-0.092081529250
8.901124366527055 -2.218755445814
8.790829485512653 9.101008907131302 3.0
-9.034831971431464 9.107140888316623 3.0
This messages are unneeded and slow down the calculation. By exploring the source code,
I found that this messages comes from the DistanceX_
In the current implementation a boolean flag (line 58) is set to true:
/** If true debug statements are printed out */
protected final static boolean D = true;
when D is true the following messages are printed :
// write these out if in debug mode
if (D) {
}
Setting D = false, should solve the issue and avoid printing this data to the log file
I attach the input files to reproduce the bug.
Changed in openquake: | |
assignee: | nobody → Anton Gritsay (angri) |
status: | New → In Progress |
Changed in openquake: | |
status: | In Progress → Fix Committed |
Changed in openquake: | |
milestone: | none → 0.4.6 |
Changed in openquake: | |
status: | Fix Committed → Fix Released |
Pull request: https:/ /github. com/gem/ OpenSHA/ pull/14