Skip to content

Commit

Permalink
Changed debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander1234519 committed Dec 17, 2024
1 parent 426d78c commit 03d44dd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ final class HbefaVehicleAttributes {
private String hbefaTechnology = "average";
private String hbefaSizeClass = "average";
private String hbefaEmConcept = "average";

public HbefaVehicleAttributes(){
}

private static final String TECHNOLOGY_CMT="Normally something like |diesel| or |petrol|." ;
/**
* @return {@value #TECHNOLOGY_CMT}
Expand All @@ -44,10 +44,10 @@ String getHbefaTechnology(){
* @param hbefaTechnology - {@value #TECHNOLOGY_CMT}
*/
public void setHbefaTechnology(String hbefaTechnology) {
this.hbefaTechnology = hbefaTechnology;
this.hbefaTechnology = hbefaTechnology;
}


private static final String SIZE_CLASS_CMT="Normally something like |<1,4L| or |>=2L|." ;
/**
* @return {@value #SIZE_CLASS_CMT}
Expand Down Expand Up @@ -100,9 +100,9 @@ public int hashCode() {
@Override
public String toString() {
return
hbefaTechnology + "; "
+ hbefaSizeClass + "; "
+ hbefaEmConcept;
"hbefaTechnology: " + hbefaTechnology + "; " +
"hbefasizeClass: " + hbefaSizeClass + "; " +
"hbefaEmConcept: " + hbefaEmConcept;
}

public boolean isDetailed() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ private HbefaWarmEmissionFactor getEf(Tuple<HbefaVehicleCategory, HbefaVehicleAt
attribs2.setHbefaSizeClass( "average" );
attribs2.setHbefaEmConcept( "average" );
if ( detailedFallbackTechAverageWarnCnt <= 1 ) {
logger.warn("did not find emission factor for efkey={}", efkey);
logger.warn(" re-written to {}", efkey2);
logger.warn("Did not find emission factor in the detailed-table for efkey={}", efkey);
logger.warn("We are now trying to search in the detailed-table, but with an technology-averaged-key : efkey was re-written to {}", efkey2);
logger.warn( "will try it with '<technology>; average; average'" );
logger.warn( Gbl.ONLYONCE );
logger.warn( Gbl.FUTURE_SUPPRESSED );
Expand All @@ -444,7 +444,7 @@ private HbefaWarmEmissionFactor getEf(Tuple<HbefaVehicleCategory, HbefaVehicleAt
return ef2;
}
//lookups of type "<technology>; average; average" should, I think, just be entered as such. kai, feb'20
logger.error( "That also did not worked " );
logger.error( "Could not find an entry in the technology-averaged-table for <technology>; average; average. " );
}
}
}
Expand Down Expand Up @@ -483,8 +483,8 @@ private HbefaWarmEmissionFactor getEf(Tuple<HbefaVehicleCategory, HbefaVehicleAt
attribs2.setHbefaSizeClass( "average" );
attribs2.setHbefaEmConcept( "average" );
if ( detailedFallbackTechAverageWarnCnt <= 1 ) {
logger.warn("did not find emission factor for efkey={}", efkey);
logger.warn(" re-written to {}", efkey2);
logger.warn("Did not find emission factor in the detailed-table for efkey={}", efkey);
logger.warn("We are now trying to search in the detailed-table, but with an technology-averaged-key : efkey was re-written to {}", efkey2);
logger.warn( "will try it with '<technology>; average; average'" );
logger.warn( Gbl.ONLYONCE );
logger.warn( Gbl.FUTURE_SUPPRESSED );
Expand All @@ -499,7 +499,7 @@ private HbefaWarmEmissionFactor getEf(Tuple<HbefaVehicleCategory, HbefaVehicleAt
}
}
if ( detailedFallbackAverageTableWarnCnt <= 1 ) {
logger.warn( "That also did not work." );
logger.error( "Could not find an technology-averaged entry for <technology>; average; average. " );
logger.warn( "Now trying with setting to vehicle attributes to \"average; average; average\" and try it with the average table" );
logger.warn( Gbl.ONLYONCE );
logger.warn( Gbl.FUTURE_SUPPRESSED );
Expand Down Expand Up @@ -528,7 +528,7 @@ private HbefaWarmEmissionFactor getEf(Tuple<HbefaVehicleCategory, HbefaVehicleAt
Gbl.assertNotNull( ef );
return ef;
} else {
logger.warn("did not find average emission factor for efkey={}", efkey);
logger.warn("Did not find average emission factor in average-table for efkey={}", efkey);
List<HbefaWarmEmissionFactorKey> list = new ArrayList<>( this.avgHbefaWarmTable.keySet() );
list.sort( Comparator.comparing( HbefaWarmEmissionFactorKey::toString ) );
for ( HbefaWarmEmissionFactorKey key : list ) {
Expand Down

0 comments on commit 03d44dd

Please sign in to comment.