From 2ec229897a775f225cabc02048262add2b1bc427 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 23 Jul 2019 14:15:53 -0300 Subject: [PATCH] linux log is now sent do system log. --- src/pw3270/main.c | 69 +++------------------------------------------------------------------ 1 file changed, 3 insertions(+), 66 deletions(-) diff --git a/src/pw3270/main.c b/src/pw3270/main.c index 5ea4025..b429776 100644 --- a/src/pw3270/main.c +++ b/src/pw3270/main.c @@ -50,10 +50,6 @@ #include #include -#if defined( HAVE_SYSLOG ) - #include -#endif // HAVE_SYSLOG - #define ERROR_DOMAIN g_quark_from_static_string(PACKAGE_NAME) /*--[ Statics ]--------------------------------------------------------------------------------------*/ @@ -74,12 +70,6 @@ GtkOSXApplication * osxapp = NULL; #endif // HAVE_GTKMAC -/* -#if defined( HAVE_SYSLOG ) - static gboolean log_to_syslog = FALSE; -#endif // HAVE_SYSLOG -*/ - /*--[ Implement ]------------------------------------------------------------------------------------*/ static int initialize(void) @@ -159,54 +149,6 @@ static gboolean optcolors(const gchar *option_name, const gchar *value, gpointer return FALSE; } -/* -#if defined( HAVE_SYSLOG ) -static void g_log_to_syslog(const gchar *log_domain,GLogLevelFlags log_level,const gchar *message,gpointer user_data) -{ - static const struct _logtype - { - GLogLevelFlags log_level; - int priority; - const gchar * msg; - } logtype[] = - { - { G_LOG_FLAG_RECURSION, LOG_INFO, "recursion" }, - { G_LOG_FLAG_FATAL, LOG_ERR, "fatal error" }, - - // GLib log levels - { G_LOG_LEVEL_ERROR, LOG_ERR, "error" }, - { G_LOG_LEVEL_CRITICAL, LOG_ERR, "critical error" }, - { G_LOG_LEVEL_WARNING, LOG_ERR, "warning" }, - { G_LOG_LEVEL_MESSAGE, LOG_ERR, "message" }, - { G_LOG_LEVEL_INFO, LOG_INFO, "info" }, - { G_LOG_LEVEL_DEBUG, LOG_DEBUG, "debug" }, - }; - - int f; - - for(f=0;f