Skip to content

Commit

Permalink
defaultDeleteRegex depends on compressedSuffix
Browse files Browse the repository at this point in the history
Moved set defaultDeleteRegex after set compressedSuffix.
  • Loading branch information
valeriodurante authored Feb 20, 2023
1 parent 27964cb commit d784896
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jpos/src/main/java/org/jpos/util/DailyLogListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ public void setConfiguration(Configuration cfg) throws ConfigurationException {

DateFormat fmt = new SimpleDateFormat(cfg.get("date-format",DEF_DATE_FMT));
setDateFmt(fmt);
deleteRegex = cfg.get("delete-regex", defaultDeleteRegex());


Integer formatObj =
COMPRESSION_FORMATS
.get(cfg.get("compression-format","none").toLowerCase());
Expand All @@ -93,6 +92,8 @@ public void setConfiguration(Configuration cfg) throws ConfigurationException {
DEF_COMPRESSED_SUFFIX[compressionFormat]));
setCompressionBufferSize(cfg.getInt("compression-buffer-size",
DEF_BUFFER_SIZE));

deleteRegex = cfg.get("delete-regex", defaultDeleteRegex());

setLastDate(fmt.format(new Date()));

Expand Down

0 comments on commit d784896

Please sign in to comment.