File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
linkmind/src/main/java/com/app/toaster Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2323import jakarta .servlet .http .HttpServletResponse ;
2424import jakarta .servlet .http .HttpSession ;
2525import lombok .RequiredArgsConstructor ;
26+ import lombok .extern .slf4j .Slf4j ;
2627import org .springframework .stereotype .Controller ;
2728import org .springframework .ui .Model ;
2829import org .springframework .web .bind .annotation .*;
3334@ Controller
3435@ RequestMapping ("/admin" )
3536@ RequiredArgsConstructor
37+ @ Slf4j
3638class AdminController {
3739
3840 private final DiscordMessageProvider discordMessageProvider ;
@@ -111,6 +113,7 @@ private String executeDiscordQrOperation(String key){
111113 MultipartFile qrImage = qrMfaAuthenticator .generateQrCode (key );
112114 String imageKey = s3Service .uploadImage (qrImage , "admin/" );
113115 String qrUrl = s3Service .getURL (imageKey );
116+ log .info ("qrUrl이 이렇게 들어갑니다." +qrUrl );
114117 discordMessageProvider .sendAdmin (new NotificationDto (NotificationType .ADMIN ,null , qrUrl ));
115118 return qrUrl ;
116119 }
Original file line number Diff line number Diff line change @@ -180,8 +180,7 @@ public String getURL(String keyName) {
180180 .build ();
181181
182182 URL url = s3Client .utilities ().getUrl (request );
183- System .out .println ("The URL for " +keyName +" is " + url );
184- return "The URL for " +keyName +" is " + url ;
183+ return "" +url ;
185184
186185 } catch (S3Exception e ) {
187186 throw new CustomException (Error .UNPROCESSABLE_PRESIGNEDURL_EXCEPTION , Error .UNPROCESSABLE_PRESIGNEDURL_EXCEPTION .getMessage ());
You can’t perform that action at this time.
0 commit comments