fix missing/wrong logging
1. Log the exception in PdbFileIterator with a logger instead of just printing it to stderr. 2. Increase log level for exceptions when inserting entries. 3. Log exception when creation of entry failed in TcpIngestor.
This commit is contained in:
@@ -124,6 +124,7 @@ public class TcpIngestor implements Ingestor, AutoCloseable, DisposableBean {
|
||||
final Entry entry = new Entry(date, duration, tags);
|
||||
return Optional.of(entry);
|
||||
} catch (final Exception e) {
|
||||
LOGGER.error("Failed to create entry.", e);
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user