serverless / serverless-openwhisk

Adds Apache OpenWhisk support to the Serverless Framework!
http://openwhisk.org/
MIT License
143 stars 46 forks source link

sls logs not working for packaged actions #111

Closed arpin closed 6 years ago

arpin commented 6 years ago

I used sls logs command to successfully monitor my ibm cloud functions.

However, when I packaged the action using name attribute and my own package defined in resources. I cannot seem to be able to access the logs using this command.

The command sls logs -tf myfunc does not give any error (like it does when you give it a action name that does not exist) but it does not show any log output either.

jthomas commented 6 years ago

Hello @arpin.

Can you paste me your serverless.yml? I'll ensure I reproduce the issue properly and then can fix it in the next release.

arpin commented 6 years ago

Here. It works if I comment out name: testpack/hello.

service: hellotest

provider:
  name: openwhisk

functions:
  hello:
    handler: src/hello.hello
    name: testpack/hello
    events:
      - http: GET /hello

plugins:
  - serverless-openwhisk

resources:
  packages:
    testpack:
      parameters:
        hello: world
jthomas commented 6 years ago

I've fixed the bug and it'll be resolved in the next release. Thanks for reporting!