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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user