suppressing some useless log messages and banners in unit tests (#752)

* suppressing some useless log messages and banners in unit tests

* some more log suppressed
This commit is contained in:
René Zubcevic
2020-01-25 12:11:45 +01:00
committed by GitHub
parent edd6b7d7cf
commit 4e371b63d0
30 changed files with 44 additions and 68 deletions

View File

@ -27,10 +27,13 @@ import org.owasp.webgoat.session.UserSessionData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import lombok.extern.slf4j.Slf4j;
import java.util.HashMap;
import java.util.Map;
@RestController
@Slf4j
public class IDORViewOwnProfile {
@Autowired
@ -54,7 +57,7 @@ public class IDORViewOwnProfile {
details.put("error","You do not have privileges to view the profile. Authenticate as tom first please.");
}
}catch (Exception ex) {
System.out.println(ex.getMessage());
log.error("something went wrong", ex.getMessage());
}
return details;
}