[Fawkes Git] branch/timn/webview-access-log-format: created (0.5.0-3368-g28217e5)

Tim Niemueller niemueller at kbsg.rwth-aachen.de
Wed Oct 26 18:12:27 CEST 2016


Changes have been pushed for the project "Fawkes Robotics Software Framework".

Gitweb: http://git.fawkesrobotics.org/fawkes.git
Trac:   http://trac.fawkesrobotics.org

The branch, timn/webview-access-log-format has been created
        at  28217e5dde6d32fa740e3ab353d70e260c20d334 (commit)

http://git.fawkesrobotics.org/fawkes.git/timn/webview-access-log-format

- *Log* ---------------------------------------------------------------
commit 28217e5dde6d32fa740e3ab353d70e260c20d334
Author:     Tim Niemueller <niemueller at kbsg.rwth-aachen.de>
AuthorDate: Wed Oct 26 18:11:41 2016 +0200
Commit:     Tim Niemueller <niemueller at kbsg.rwth-aachen.de>
CommitDate: Wed Oct 26 18:11:41 2016 +0200

    libwebview: fix access_log date format
    
    The date format of Apache by default does have the abbreviated month
    rather than the digits. Adapt to avoid running into problems with log
    analyzers.

http://git.fawkesrobotics.org/fawkes.git/commit/28217e5
http://trac.fawkesrobotics.org/changeset/28217e5

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


- *Summary* -----------------------------------------------------------


- *Diffs* -------------------------------------------------------------

- *commit* 28217e5dde6d32fa740e3ab353d70e260c20d334 - - - - - - - - - -
Author:  Tim Niemueller <niemueller at kbsg.rwth-aachen.de>
Date:    Wed Oct 26 18:11:41 2016 +0200
Subject: libwebview: fix access_log date format

 src/libs/webview/access_log.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

_Diff for modified files_:
diff --git a/src/libs/webview/access_log.cpp b/src/libs/webview/access_log.cpp
index 3f41ffe..a919be5 100644
--- a/src/libs/webview/access_log.cpp
+++ b/src/libs/webview/access_log.cpp
@@ -77,7 +77,7 @@ WebviewAccessLog::log(const WebRequest *request)
   localtime_r(&timesec, &ltime);
   char timestr[1024];
   // [day/month/year:hour:minute:second zone]
-  strftime(timestr, sizeof(timestr), "[%d/%m/%Y:%H:%M:%S %z]", &ltime);
+  strftime(timestr, sizeof(timestr), "[%d/%b/%Y:%H:%M:%S %z]", &ltime);
   fprintf(logfile_, "%s - %s %s \"%s %s %s\" %i %zu \"%s\" \"%s\"\n",
 	  request->client_addr().c_str(),
 	  request->user().length() == 0 ? "-" : request->user().c_str(),




-- 
Fawkes Robotics Framework                 http://www.fawkesrobotics.org


More information about the fawkes-commits mailing list