Skip to content

Commit

Permalink
remove mainly unused logging dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingDepot committed Aug 7, 2024
1 parent d3287d4 commit 515d702
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ repositories {

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'ch.qos.logback:logback-classic:1.4.14'
implementation 'net.logstash.logback:logstash-logback-encoder:8.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test'

implementation 'org.projectlombok:lombok:1.18.34'
compileOnly 'org.projectlombok:lombok:1.18.34'
annotationProcessor 'org.projectlombok:lombok:1.18.34'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

tasks.named('test') {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.datadoghq.workshops.samplevulnerablejavaapp;

import com.datadoghq.workshops.samplevulnerablejavaapp.exception.InvalidDomainException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
Expand All @@ -11,14 +9,11 @@
@RestController
public class MainController {

public Logger log = LoggerFactory.getLogger(MainController.class);

@Autowired
private DomainTestService domainTestService;

@RequestMapping(method=RequestMethod.POST, value="/test-domain", consumes="application/json")
public ResponseEntity<String> testDomain(@RequestBody DomainTestRequest request) {
log.info("Testing domain " + request.domainName);
try {
String result = domainTestService.testDomain(request.domainName);
return new ResponseEntity<>(result, HttpStatus.OK);
Expand Down
16 changes: 0 additions & 16 deletions src/main/resources/logback.xml

This file was deleted.

0 comments on commit 515d702

Please sign in to comment.