openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csantan...@apache.org
Subject [incubator-openwhisk] branch master updated: Fix logs playbook to dump activations db. (#2555)
Date Wed, 02 Aug 2017 12:01:49 GMT
This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new ef7eb05  Fix logs playbook to dump activations db. (#2555)
ef7eb05 is described below

commit ef7eb0530048af0d829c7edd7e7d61a0db766625
Author: rodric rabbah <rodric@gmail.com>
AuthorDate: Wed Aug 2 08:01:46 2017 -0400

    Fix logs playbook to dump activations db. (#2555)
---
 ansible/logs.yml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/ansible/logs.yml b/ansible/logs.yml
index fcfc9ac..1a2786d 100644
--- a/ansible/logs.yml
+++ b/ansible/logs.yml
@@ -12,14 +12,16 @@
     - name: dump entity views
       local_action: shell "{{ openwhisk_home }}/bin/wskadmin" db get whisks --docs --view
whisks/{{ item }} | tail -n +2 > "{{ openwhisk_home }}/logs/db-{{ item }}.log"
       with_items:
-        - activations
         - actions
         - triggers
         - rules
         - packages
       when: "'db' not in exclude_logs_from"
-    - name: dump subjects database
-      local_action: shell "{{ openwhisk_home }}/bin/wskadmin" db get subjects --docs | tail
-n +2 > "{{ openwhisk_home }}/logs/db-subjects.log"
+    - name: dump activations and subjects database
+      local_action: shell "{{ openwhisk_home }}/bin/wskadmin" db get {{ item }} --docs |
tail -n +2 > "{{ openwhisk_home }}/logs/db-{{ item }}.log"
+      with_items:
+        - activations
+        - subjects
       when: "'db' not in exclude_logs_from"
 
 - hosts: shared,core,invokers

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].

Mime
View raw message