Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't display logs for a single function #179

Open
3 tasks done
gdepouilly opened this issue May 3, 2023 · 2 comments
Open
3 tasks done

Can't display logs for a single function #179

gdepouilly opened this issue May 3, 2023 · 2 comments

Comments

@gdepouilly
Copy link

gdepouilly commented May 3, 2023

Are you certain it's a bug?

  • Yes, it looks like a bug

Are you using the latest version?

  • Yes, I'm using the latest version

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Issue description

Hi,

When using the following command :
serverless logs --service=app --function=index,

I got the following error :

Environment: darwin, node 18.15.0, compose 1.3.0
Docs:        slss.io/docs-compose
Bugs:        github.com/serverless/compose/issues

Error:
Unrecognized CLI options: "--function"

I followed the documentation which states this exact command :

image

So, what is the correct way to display logs for a single function?

Service configuration (serverless-compose.yml) content

N/A

Command name and used flags

serverless logs --service=app --function=index

Command output

Environment: darwin, node 18.15.0, compose 1.3.0
Docs:        slss.io/docs-compose
Bugs:        github.com/serverless/compose/issues

Error:
Unrecognized CLI options: "--function"
@marcelpanse
Copy link

I have the same problem, doesn't work.

@kellyp
Copy link

kellyp commented May 17, 2023

Is there any chance there will be another compose release with fix in it?

edit:
I did some digging into the code, got a single function deploy to work:

serverless service_name:deploy function --function function_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants