openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rab...@apache.org
Subject [incubator-openwhisk] branch master updated: Route Gatling failure logs to file (#4151)
Date Tue, 08 Jan 2019 11:48:00 GMT
This is an automated email from the ASF dual-hosted git repository.

rabbah 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 e32a403  Route Gatling failure logs to file (#4151)
e32a403 is described below

commit e32a4038825da2ea42e6f0c1596ab68b52867dfa
Author: Chetan Mehrotra <chetanm@apache.org>
AuthorDate: Tue Jan 8 17:17:54 2019 +0530

    Route Gatling failure logs to file (#4151)
---
 ansible/logs.yml                                           |  5 +++++
 .../gatling_tests/src/gatling/resources/conf/logback.xml   | 14 +++++++++++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/ansible/logs.yml b/ansible/logs.yml
index 5370238..d41077e 100644
--- a/ansible/logs.yml
+++ b/ansible/logs.yml
@@ -34,6 +34,11 @@
         - test-results
       ignore_errors: true
       when: "'tests' not in exclude_logs_from"
+    - name: create "perf reports" folder
+      file: path="{{ openwhisk_home }}/logs/perf-reports" state=directory
+    - name: collect perf logs
+      local_action: shell cp  "{{ openwhisk_home }}/tests/performance/gatling_tests/build/gatling.log"
"{{ openwhisk_home }}/logs/perf-reports/"
+      ignore_errors: true
 
 - hosts: all:!ansible
   serial: 1
diff --git a/tests/performance/gatling_tests/src/gatling/resources/conf/logback.xml b/tests/performance/gatling_tests/src/gatling/resources/conf/logback.xml
index b139242..5729db9 100644
--- a/tests/performance/gatling_tests/src/gatling/resources/conf/logback.xml
+++ b/tests/performance/gatling_tests/src/gatling/resources/conf/logback.xml
@@ -6,9 +6,21 @@
             <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
         </encoder>
     </appender>
+    <appender name="FILE" class="ch.qos.logback.core.FileAppender">
+        <immediateFlush>false</immediateFlush>
+        <file>build/gatling.log</file>
+        <append>false</append>
+        <encoder>
+            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+        </encoder>
+    </appender>
     <!-- This will log the details of the failed requests -->
-    <logger name="io.gatling.http.ahc" level="DEBUG" />
+    <logger name="io.gatling.http.ahc" level="DEBUG" additivity="false" >
+        <appender-ref ref="FILE" />
+    </logger>
+
     <root level="WARN">
         <appender-ref ref="CONSOLE"/>
+        <appender-ref ref="FILE" />
     </root>
 </configuration>


Mime
View raw message