Skip to content

Commit

Permalink
Minor fix to logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tedyoung committed Nov 19, 2024
1 parent 7c18f2f commit 8fbf206
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
31 changes: 31 additions & 0 deletions qodana.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#-------------------------------------------------------------------------------#
# Qodana analysis is configured by qodana.yaml file #
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"

#Specify inspection profile for code analysis
profile:
name: qodana.starter

#Enable inspections
#include:
# - name: <SomeEnabledInspectionId>

#Disable inspections
#exclude:
# - name: <SomeDisabledInspectionId>
# paths:
# - <path/where/not/run/inspection>

projectJDK: 23 #(Applied in CI/CD pipeline)

#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
#bootstrap: sh ./prepare-qodana.sh

#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
#plugins:
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)

#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
linter: jetbrains/qodana-jvm:latest
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void send(EmailToSend emailToSend) {
Response response = sg.api(request);
LOGGER.info("Emails sent via SendGrid, response={}, to emails={}", response.getStatusCode(), toEmailsAsStrings(personalization));
} catch (IOException e) {
LOGGER.warn("Exception when trying to send email via SendGrid. Request={}. Exception: {}", request.getBody(), e);
LOGGER.warn("Exception when trying to send email via SendGrid. Request=" + request.getBody(), e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.jitterted.mobreg.application.port.Broadcaster;
import com.jitterted.mobreg.domain.EnsembleTimer;
import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
Expand Down Expand Up @@ -62,7 +63,7 @@ public void handleMessage(WebSocketSession session, WebSocketMessage<?> message)
}

@Override
public void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) throws Exception {
public void afterConnectionClosed(WebSocketSession session, @NotNull CloseStatus closeStatus) throws Exception {
sessionMap.remove(session.getId());
}

Expand Down

0 comments on commit 8fbf206

Please sign in to comment.