chore: add server start logs

This commit is contained in:
Steven
2024-05-18 10:59:20 +08:00
parent 35fb717f40
commit 5cb8226775
4 changed files with 22 additions and 10 deletions

View File

@@ -64,6 +64,13 @@ func NewService() (*Service, error) {
func (s *Service) Start(ctx context.Context) {
slog.Info("Memogram started")
// Try to get workspace profile.
workspaceProfile, err := s.client.WorkspaceService.GetWorkspaceProfile(ctx, &v1pb.GetWorkspaceProfileRequest{})
if err != nil {
slog.Error("failed to get workspace profile", slog.Any("err", err))
return
}
slog.Info("workspace profile", slog.Any("profile", workspaceProfile))
s.bot.Start(ctx)
}