diff --git a/java/src/main/java/monasca/persister/repository/vertica/VerticaMetricRepo.java b/java/src/main/java/monasca/persister/repository/vertica/VerticaMetricRepo.java index 7ad4e289..52baf7ee 100644 --- a/java/src/main/java/monasca/persister/repository/vertica/VerticaMetricRepo.java +++ b/java/src/main/java/monasca/persister/repository/vertica/VerticaMetricRepo.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Hewlett-Packard Development Company, L.P. + * (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -57,6 +57,8 @@ public class VerticaMetricRepo extends VerticaRepo implements Repo MAX_VALUE_META_LENGTH) { + logger + .error("[{}]: Value meta length {} longer than maximum {}, dropping value meta", + id, valueMetaString.length(), MAX_VALUE_META_LENGTH); + return ""; + } } catch (JsonProcessingException e) {