Skip to content

Commit 75d3af3

Browse files
authored
fix packt plugin (#110)
1 parent 4b828eb commit 75d3af3

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

rebot-plugins/rebot-packt-free-learning-plugin/src/main/java/xyz/rebasing/rebot/plugin/packt/notifier/PacktNotifier.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ public void populate() {
105105
}
106106

107107
BufferedReader reader = new BufferedReader(new StringReader(response.body().string()));
108-
// navigate directly to the end of the html to get the product ID and get the 'const metaProductId' value
108+
// navigate directly more or lest to where the product ID is and get the 'const metaProductId' value
109109
// it is at the end of the html page.
110-
Optional<String> metaProductId = reader.lines().skip(1616)
110+
Optional<String> metaProductId = reader.lines().skip(1000)
111111
.filter(s -> s.contains("const metaProductId"))
112112
.map(s -> s.split("=")[1].replace("\'", "").replace(";", "").trim())
113113
.findFirst();
@@ -141,7 +141,6 @@ public void populate() {
141141
);
142142
}
143143
} catch (final Exception e) {
144-
e.printStackTrace();
145144
log.warnv("Failed to obtain the ebook information: {0}", e.getMessage());
146145
}
147146
}

rebot-services/rebot-persistence-service/src/main/resources/application.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ quarkus.datasource.jdbc.min-size=8
77
quarkus.hibernate-orm.database.generation=update
88
# set to true to troubleshooting purposes
99
quarkus.hibernate-orm.log.sql=false
10-
quarkus.log.category."org.hibernate.cache".level=DEBUG
10+
quarkus.log.category."org.hibernate.cache".level=INFO
1111

1212
# not needed if create-drop database generation is used.
1313
# It is required if a old version of ReBot was running
@@ -21,8 +21,8 @@ quarkus.log.category."org.hibernate.cache".level=DEBUG
2121
# dev
2222
%dev.quarkus.datasource.db-kind=h2
2323
%dev.quarkus.datasource.jdbc.url=jdbc:h2:mem:testdb
24-
%dev.quarkus.hibernate-orm.log.sql=true
25-
%dev.quarkus.log.category."org.hibernate".level=DEBUG
24+
%dev.quarkus.hibernate-orm.log.sql=false
25+
%dev.quarkus.log.category."org.hibernate".level=INFO
2626
%dev.quarkus.log.category."org.hibernate.cache".level=DEBUG
2727
%dev.xyz.rebasing.rebot.telegram.userId=userid
2828
%dev.xyz.rebasing.rebot.telegram.token=token

rebot-telegram/src/main/resources/application.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ quarkus.log.file.path=/tmp/quarkus.log
1212
quarkus.log.file.level=TRACE
1313
quarkus.log.file.format=%d{HH:mm:ss} %-5p [%c{2.}]] (%t) %s%e%n
1414

15+
# log definitions
16+
quarkus.log.category."org.hibernate".level=INFO
17+
1518
# dev
1619
%dev.quarkus.log.min-level=TRACE
1720
%dev.quarkus.log.console.level=TRACE
1821
%dev.quarkus.log.category."xyz.rebasing".level=TRACE
19-
%dev.quarkus.log.category."org.hibernate.cache".level=DEBUG
22+
%dev.quarkus.log.category."org.hibernate.cache".level=INFO
2023
%dev.quarkus.log.category."org.jbpm.process".level=TRACE
2124
%dev.quarkus.log.category."xyz.rebasing.rebot.plugin.postalcode.utils.BrazilPostalCodeUtils".level=INFO
2225
%dev.quarkus.devservices.enabled=false

0 commit comments

Comments
 (0)