From 59fdfac32201e1fa879f5df8288f748d1b8183d1 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Thu, 25 Apr 2024 01:14:58 +0200 Subject: [PATCH] swapped file/screen for setll --- log.cpp | 2 +- log.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/log.cpp b/log.cpp index 2e8ba8e..d250081 100644 --- a/log.cpp +++ b/log.cpp @@ -66,7 +66,7 @@ void setloghost(const char *const host, const log_level_t ll) l_timestamp = false; } -void setll(const log_level_t ll_file, const log_level_t ll_screen) +void setll(const log_level_t ll_screen, const log_level_t ll_file) { log_level_file = ll_file; log_level_screen = ll_screen; diff --git a/log.h b/log.h index c94e3c4..50b6ce5 100644 --- a/log.h +++ b/log.h @@ -13,7 +13,7 @@ typedef enum { ll_emerg = 0, ll_alert, ll_critical, ll_error, warning, notice, i log_level_t parse_ll(const std::string & str); void setlogfile(const char *const lf, const log_level_t ll_file, const log_level_t ll_screen, const bool l_timestamp); void setloghost(const char *const host, const log_level_t ll); -void setll(const log_level_t ll_file, const log_level_t ll_screen); +void setll(const log_level_t ll_screen, const log_level_t ll_file); void setloguid(const int uid, const int gid); void closelog(); void dolog(const log_level_t ll, const char *fmt, ...);