[Pkg-nagios-changes] [SCM] Debian packaging for mod gearman. branch, upstream, updated. upstream/1.0.6-34-gd3fb2ec
Sven Nierlein
sven at nierlein.de
Wed Aug 24 09:21:46 UTC 2011
The following commit has been merged in the upstream branch:
commit dd14384ee0c80ea29818789b306a0d286e7178b0
Author: Sven Nierlein <sven at nierlein.de>
Date: Fri Jul 15 22:10:44 2011 +0200
print version information into cores logfile on startup
diff --git a/Changes b/Changes
index 25b19a8..c640f13 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,6 @@
This file documents the revision history for mod_gearman.
-1.0.8 Sat Jul 9 11:43:53 CEST 2011
+1.0.8 Fri Jul 15 20:24:27 CEST 2011
- use identifier for error messages if set
- fixed ld options (fixes debian bug #632431) thanks Ilya Barygin
diff --git a/neb_module/mod_gearman.c b/neb_module/mod_gearman.c
index 5c3e8e3..2bccd9b 100644
--- a/neb_module/mod_gearman.c
+++ b/neb_module/mod_gearman.c
@@ -159,6 +159,14 @@ int nebmodule_init( int flags, char *args, nebmodule *handle ) {
neb_register_callback( i, gearman_module_handle, 0, handle_export );
}
+ /* log at least one line into the core logfile */
+ if ( mod_gm_opt->logmode != GM_LOG_MODE_CORE ) {
+ int logmode_saved = mod_gm_opt->logmode;
+ mod_gm_opt->logmode = GM_LOG_MODE_CORE;
+ gm_log( GM_LOG_INFO, "initialized version %s (libgearman %s)\n", GM_VERSION, gearman_version() );
+ mod_gm_opt->logmode = logmode_saved;
+ }
+
gm_log( GM_LOG_DEBUG, "finished initializing\n" );
return NEB_OK;
--
Debian packaging for mod gearman.
More information about the Pkg-nagios-changes
mailing list