Skip to content

Commit

Permalink
SMHE-832: Log error instead of stacktrace and use version 5.0.0 for SMR
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Bolder committed Jul 4, 2022
1 parent 820e33c commit bda8d32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
import java.util.Map;
import java.util.Optional;
import java.util.stream.Stream;
import lombok.extern.slf4j.Slf4j;
import org.opensmartgridplatform.domain.smartmetering.config.CosemObject;
import org.opensmartgridplatform.domain.smartmetering.config.MeterConfig;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class DlmsObjectService {

private List<MeterConfig> meterConfigList;
Expand Down Expand Up @@ -109,7 +111,7 @@ private List<MeterConfig> getMeterConfigListFromResources() throws IOException {
objectMapper.readValue(resource.getInputStream(), MeterConfig.class);
meterConfigs.add(meterConfig);
} catch (final IOException e) {
e.printStackTrace();
log.error(String.format("Cannot read config file %s", resource.getFilename()), e);
}
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"profile": "SMR",
"version": "5.0",
"version": "5.0.0",
"description": "Profile for Smart Meter Requirements 5.0",
"settings": [
{
Expand Down

0 comments on commit bda8d32

Please sign in to comment.