From a7cd28aab14857ca63a81fe701e18b5d2156c044 Mon Sep 17 00:00:00 2001 From: Sergiu Deitsch Date: Fri, 29 Dec 2023 20:20:08 +0100 Subject: [PATCH] wip --- src/logging.cc | 63 ++++++++++++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/src/logging.cc b/src/logging.cc index 76c3d5831..762cb48bc 100644 --- a/src/logging.cc +++ b/src/logging.cc @@ -29,6 +29,8 @@ #define _GNU_SOURCE 1 // needed for O_NOFOLLOW and pread()/pwrite() +#include "glog/logging.h" + #include #include #include @@ -36,50 +38,51 @@ #include #include +#include "base/commandlineflags.h" // to get the program name +#include "base/googleinit.h" #include "config.h" +#include "glog/raw_logging.h" #include "utilities.h" -#ifdef HAVE_UNISTD_H -# include // For _exit. -#endif -#include -#include -#include -#ifdef HAVE_SYS_UTSNAME_H -# include // For uname. +#ifdef HAVE_STACKTRACE +#include "stacktrace.h" #endif -#include + #include -#include -#include +#include + +#include // for std::isspace +#include // for errno +#include #include +#include #include -#ifdef HAVE_PWD_H -# include -#endif -#ifdef HAVE_SYSLOG_H -# include -#endif -#ifdef HAVE__CHSIZE_S -#include // for truncate log file -#endif -#include -#include // for errno -#include +#include +#include #include -#include // for std::isspace +#include +#include + #ifdef GLOG_OS_WINDOWS #include "windows/dirent.h" #else #include // for automatic removal of old logs #endif -#include "base/commandlineflags.h" // to get the program name -#include "base/googleinit.h" -#include "glog/logging.h" -#include "glog/raw_logging.h" -#ifdef HAVE_STACKTRACE -# include "stacktrace.h" +#ifdef HAVE__CHSIZE_S +#include // for truncate log file +#endif +#ifdef HAVE_SYS_UTSNAME_H +#include // For uname. +#endif +#ifdef HAVE_PWD_H +#include +#endif +#ifdef HAVE_SYSLOG_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include // For _exit. #endif #ifdef __ANDROID__