Skip to content

Commit

Permalink
adding classes to import to avoid FQDNS for Logger and Level
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Aug 23, 2024
1 parent 108ae62 commit ad160ec
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
import io.helidon.webserver.grpc.GrpcRouting;
import io.helidon.webserver.http.HttpRouting;
import java.io.IOException;
import java.lang.System.Logger;
import java.lang.System.Logger.Level;
import javax.inject.Inject;
import javax.inject.Singleton;

Expand All @@ -45,7 +47,7 @@
@Singleton
public class BlockNodeApp {

private static final System.Logger LOGGER = System.getLogger(BlockNodeApp.class.getName());
private static final Logger LOGGER = System.getLogger(BlockNodeApp.class.getName());
private final ServiceStatus serviceStatus;
private final HealthService healthService;
private final BlockNodeContext blockNodeContext;
Expand Down Expand Up @@ -112,7 +114,7 @@ public void startServer() throws IOException {

// Log the server status
LOGGER.log(
System.Logger.Level.INFO,
Level.INFO,
String.format("Block Node Server started at port: %d", webServer.port()));
}

Expand Down

0 comments on commit ad160ec

Please sign in to comment.