Skip to content

Commit

Permalink
Adding banner logger
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpert committed Jul 27, 2023
1 parent 0f26ee5 commit d70c1ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snapshot/sftp_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ func newSFTPStorage() (*sftpStorage, error) {
Msg("Host connected for SFTP storage")
return nil
},
BannerCallback: func(message string) error {
log.Info().Str("message", message).Msgf("Server message...")
return nil
},
}

// Connect to the SSH server
Expand Down

0 comments on commit d70c1ba

Please sign in to comment.