Skip to content

Commit

Permalink
avoid duplicate error log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
clausnagel committed Feb 9, 2025
1 parent 0a7eaae commit 17feca1
Show file tree
Hide file tree
Showing 25 changed files with 6 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class ExecutionException extends Exception {

public ExecutionException() {
super();
}

public ExecutionException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@ public synchronized void logException(String message, Throwable e) {
Level level = LoggerManager.getInstance().logConsole().getLogLevel();
if (level.isMoreSpecificThan(Level.INFO)) {
while (e != null) {
logger.error(e);
String cause = logger.getMessageFactory().newMessage(e).getFormattedMessage();
if (!cause.equals(message)) {
logger.error(e);
}

message = cause;
e = e.getCause();
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
#
# citydb-tool - Command-line tool for the 3D City Database
# https://www.3dcitydb.org/
#
# Copyright 2022-2024
# virtualcitysystems GmbH, Germany
# https://vc.systems/
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name=@name@
version=@version@
copyrightYear=@copyrightYear@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class ConfigException extends Exception {

public ConfigException() {
super();
}

public ConfigException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class DatabaseException extends Exception {

public DatabaseException() {
super();
}

public DatabaseException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class DatabaseAdapterException extends Exception {

public DatabaseAdapterException() {
super();
}

public DatabaseAdapterException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class GeometryException extends Exception {

public GeometryException() {
super();
}

public GeometryException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class SchemaException extends Exception {

public SchemaException() {
super();
}

public SchemaException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class SrsException extends Exception {

public SrsException() {
super();
}

public SrsException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class ModelBuildException extends Exception {

public ModelBuildException() {
super();
}

public ModelBuildException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class ModelSerializeException extends Exception {

public ModelSerializeException() {
super();
}

public ModelSerializeException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class IOAdapterException extends Exception {

public IOAdapterException() {
super();
}

public IOAdapterException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class ReadException extends Exception {

public ReadException() {
super();
}

public ReadException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class FilterException extends Exception {

public FilterException() {
super();
}

public FilterException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class ValidateException extends Exception {

public ValidateException() {
super();
}

public ValidateException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class WriteException extends Exception {

public WriteException() {
super();
}

public WriteException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class DeleteException extends Exception {

public DeleteException() {
super();
}

public DeleteException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class ExportException extends Exception {

public ExportException() {
super();
}

public ExportException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class ImportException extends Exception {

public ImportException() {
super();
}

public ImportException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class PluginException extends Exception {

public PluginException() {
super();
}

public PluginException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class QueryBuildException extends Exception {

public QueryBuildException() {
super();
}

public QueryBuildException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class SchemaPathException extends Exception {

public SchemaPathException() {
super();
}

public SchemaPathException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class FilterParseException extends Exception {

public FilterParseException() {
super();
}

public FilterParseException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class IdListException extends Exception {

public IdListException() {
super();
}

public IdListException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class TilingException extends Exception {

public TilingException() {
super();
}

public TilingException(String message) {
Expand Down

0 comments on commit 17feca1

Please sign in to comment.