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.driverClassName=org.h2.Driver
|
||||||
spring.datasource.username=sa
|
spring.datasource.username=sa
|
||||||
spring.datasource.password=password
|
spring.datasource.password=password
|
||||||
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
|
|
||||||
#-
|
#-
|
||||||
#spring.jpa.hibernate.ddl-auto=create
|
#spring.jpa.hibernate.ddl-auto=create
|
||||||
#-
|
#-
|
||||||
|
|||||||
10
pom.xml
10
pom.xml
@ -34,6 +34,10 @@
|
|||||||
<groupId>com.h2database</groupId>
|
<groupId>com.h2database</groupId>
|
||||||
<artifactId>h2</artifactId>
|
<artifactId>h2</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.postgresql</groupId>
|
||||||
|
<artifactId>postgresql</artifactId>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
@ -56,8 +60,10 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
|
||||||
|
|
||||||
|
<finalName>Kleinanzeigen</finalName>
|
||||||
|
|
||||||
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
@ -65,8 +71,8 @@
|
|||||||
<executable>true</executable>
|
<executable>true</executable>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
@ -141,7 +141,7 @@ public class TelegramService {
|
|||||||
send.setCaption(createText(offerDto));
|
send.setCaption(createText(offerDto));
|
||||||
send.setReplyMarkup(createKeyboard(false));
|
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);
|
final Message tlgMessage = bot.execute(send);
|
||||||
|
|
||||||
messageService.create(offerDto, chatDto, tlgMessage);
|
messageService.create(offerDto, chatDto, tlgMessage);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user