首页 文章

如何检查Openwhisk(IBM Cloud Functions)是否被调用?

提问于
浏览
1

我有一个将数据上传到Cloudant数据库的Web应用程序 . 更改事件应触发OpenWhisk / IBM Cloud Functions激活或操作 . 如何检查是否调用了OpenWhisk,是否有调试机制?我尝试使用仪表板,但有什么我可以在命令行上使用?

我正在尝试使用node.js和Docker操作,因此如果解决方案与node.js,Swift或Docker容器中的操作无关,那将会很棒 .

1 回答

  • 2

    我在_744158中找到了它:

    wsk activation poll
    

    诀窍 . 它将激活日志流式传输到我的shell:

    wsk activation poll
    
    Hit Ctrl-C to exit.
    Polling for logs
    Activation: echo (36e3d136f55d439e8e901b4d8b9dxxxx)
    Activation: wordCount (e001309b627c451991f477ab349cxxxx) 
    2016-03-18T15:10:38.529050288Z stdout: The message 'John says hello to OpenWhisk and the wonderful world of Cloud Computing' has 12 words
    

相关问题