diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-02-20 17:24:18 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-02-20 18:14:20 +0100 |
commit | bd45a979f8eea4ef6effafd37e0a18ef250a681f (patch) | |
tree | 2e1bdf33070f84c6d2a8be57f83424e358980fda /CommonLibs/Logger.cpp | |
parent | b7095c7bc5f5c710d958f03b38be83dffff729ae (diff) |
Logger: Drop unused gLogEarly
Change-Id: I2c8f24fbf453e0a94d7a95c3df7cc75f0e4bd456
Diffstat (limited to 'CommonLibs/Logger.cpp')
-rw-r--r-- | CommonLibs/Logger.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/CommonLibs/Logger.cpp b/CommonLibs/Logger.cpp index 5b8da99..ee607fd 100644 --- a/CommonLibs/Logger.cpp +++ b/CommonLibs/Logger.cpp @@ -214,37 +214,4 @@ void gLogInit(const char* name, const char* level, int facility, char* fn) openlog(name,0,facility); } - -void gLogEarly(int level, const char *fmt, ...) -{ - va_list args; - - va_start(args, fmt); - - if (gLogToSyslog) { - va_list args_copy; - va_copy(args_copy, args); - vsyslog(level | LOG_USER, fmt, args_copy); - va_end(args_copy); - } - - if (gLogToConsole) { - va_list args_copy; - va_copy(args_copy, args); - vprintf(fmt, args_copy); - printf("\n"); - va_end(args_copy); - } - - if (gLogToFile) { - va_list args_copy; - va_copy(args_copy, args); - vfprintf(gLogToFile, fmt, args_copy); - fprintf(gLogToFile, "\n"); - va_end(args_copy); - } - - va_end(args); -} - // vim: ts=4 sw=4 |