Code clean + Log clean
This commit is contained in:
parent
ec8ebf3280
commit
b06c322ebb
@ -4,7 +4,6 @@ spring.datasource.url=jdbc:h2:./database;AUTO_SERVER=TRUE
|
||||
spring.datasource.driverClassName=org.h2.Driver
|
||||
spring.datasource.username=sa
|
||||
spring.datasource.password=password
|
||||
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
|
||||
#-
|
||||
#spring.jpa.hibernate.ddl-auto=create
|
||||
#-
|
||||
|
||||
10
pom.xml
10
pom.xml
@ -34,6 +34,10 @@
|
||||
<groupId>com.h2database</groupId>
|
||||
<artifactId>h2</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
@ -56,8 +60,10 @@
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
<finalName>Kleinanzeigen</finalName>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
@ -65,8 +71,8 @@
|
||||
<executable>true</executable>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
|
||||
</build>
|
||||
|
||||
</project>
|
||||
@ -141,7 +141,7 @@ public class TelegramService {
|
||||
send.setCaption(createText(offerDto));
|
||||
send.setReplyMarkup(createKeyboard(false));
|
||||
|
||||
log.info("Sending: chat={}, offer={}", chatDto, offerDto);
|
||||
log.info("Sending: offer={} to chat={}", offerDto, chatDto);
|
||||
final Message tlgMessage = bot.execute(send);
|
||||
|
||||
messageService.create(offerDto, chatDto, tlgMessage);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user