Skip to content

Commit

Permalink
adjust logging
Browse files Browse the repository at this point in the history
  • Loading branch information
svencc committed Aug 24, 2023
1 parent 0a887e0 commit 21de1cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/recom/api/map/MapScannerController.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public ResponseEntity<Void> startTransaction(
@RequestParam(required = true)
@NonNull final Map<String, String> payload
) {
log.debug("Requested POST /api/v1/map/scanner/transaction/open");
log.info("Requested POST /api/v1/map/scanner/transaction/open");

mapEntityTransactionService.openTransaction(payloadParser.parseValidated(payload, TransactionIdentifierDto.class));
return ResponseEntity.status(HttpStatus.OK)
Expand All @@ -73,7 +73,7 @@ public ResponseEntity<Void> commitTransaction(
@RequestParam(required = true)
@NonNull final Map<String, String> payload
) {
log.debug("Requested POST /api/v1/map/scanner/transaction/commit");
log.info("Requested POST /api/v1/map/scanner/transaction/commit");

mapEntityTransactionService.commitTransaction(payloadParser.parseValidated(payload, TransactionIdentifierDto.class));
return ResponseEntity.status(HttpStatus.OK)
Expand All @@ -95,7 +95,7 @@ public ResponseEntity<Void> transmitEntityPackage(
@RequestParam(required = true)
@NonNull final Map<String, String> payload
) {
log.debug("Requested POST /api/v1/map/scanner/transaction/entities");
log.info("Requested POST /api/v1/map/scanner/transaction/entities");

mapEntityTransactionService.addMapEntitiesPackage(payloadParser.parseValidated(payload, TransactionalEntityPackageDto.class));
return ResponseEntity.status(HttpStatus.OK)
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/application-local.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=update

logging.level.com.recom=INFO
logging.level.org.hibernate.SQL=DEBUG
logging.level.org.hibernate.com.jdbc.bind=TRACE
#logging.level.org.hibernate.SQL=DEBUG
#logging.level.org.hibernate.com.jdbc.bind=TRACE
logging.level.com.vladmihalcea.hibernate.type.util.LogUtils=DEBUG
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.highlight_sql=true
spring.jpa.properties.hibernate.generate_statistics=true
#spring.jpa.properties.hibernate.format_sql=true
#spring.jpa.properties.hibernate.highlight_sql=true
#spring.jpa.properties.hibernate.generate_statistics=true
#logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=DEBUG


Expand Down

0 comments on commit 21de1cc

Please sign in to comment.