Skip to content

Commit

Permalink
format pprof port addr log
Browse files Browse the repository at this point in the history
  • Loading branch information
tedim52 committed Nov 9, 2024
1 parent f6f5320 commit cc7ec45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engine/server/engine/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func runMain() error {
}

go func() {
logrus.Info("Starting pprof server on :6060")
logrus.Infof("Starting pprof server on: %s", pprofPortAddr)
if err := http.ListenAndServe(pprofPortAddr, nil); err != nil {
logrus.Fatalf("pprof server failed: %v", err)
}
Expand Down
4 changes: 2 additions & 2 deletions engine/server/engine/server/engine_connect_server_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func (service *EngineConnectServerService) GetServiceLogs(ctx context.Context, c
select {
//stream case
case serviceLogsByServiceUuid, isChanOpen := <-serviceLogsByServiceUuidChan:
// If the channel is closed means that the logs database client won't continue sending streams
//If the channel is closed means that the logs database client won't continue sending streams
if !isChanOpen {
logrus.Debug("Exiting the stream loop after receiving a close signal from the service logs by service UUID channel")
return nil
Expand All @@ -358,7 +358,7 @@ func (service *EngineConnectServerService) GetServiceLogs(ctx context.Context, c
}
//client cancel ctx case
case <-contextWithCancel.Done():
logrus.Debug("The user service logs stream is done.")
logrus.Debug("The user service logs stream has done")
return nil
//error from logs database case
case err, isChanOpen := <-errChan:
Expand Down

0 comments on commit cc7ec45

Please sign in to comment.