mirror of
https://github.com/kemko/memes-telegram-integration.git
synced 2026-01-01 15:55:41 +03:00
chore: add server start logs
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user