From ee14e6dda7e396a39c674ca17d7a21c3dff0fce2 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 26 Sep 2013 09:39:09 +0200 Subject: [PATCH] cluster: Add log message to config handler. --- components/cluster/clusterlistener.cpp | 2 ++ doc/3.3-object-types.md | 3 ++- doc/mkdoc.sh | 19 ++++++++++++++++++- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/components/cluster/clusterlistener.cpp b/components/cluster/clusterlistener.cpp index c3f4459da..147ceb56f 100644 --- a/components/cluster/clusterlistener.cpp +++ b/components/cluster/clusterlistener.cpp @@ -566,6 +566,8 @@ void ClusterListener::NewClientHandler(const Socket::Ptr& client, TlsRole role) } } + Log(LogInformation, "cluster", "Sending " + Convert::ToString(config->GetLength()) + " config files to endpoint '" + endpoint->GetName()); + Dictionary::Ptr params = boost::make_shared(); params->Set("identity", GetIdentity()); params->Set("config_files", config); diff --git a/doc/3.3-object-types.md b/doc/3.3-object-types.md index 45af77edc..8550065a2 100644 --- a/doc/3.3-object-types.md +++ b/doc/3.3-object-types.md @@ -16,6 +16,7 @@ Attributes: ----------------|---------------- severity |**Optional.** The minimum severity for this log. Can be "debug", "information", "warning" or "critical". Defaults to "information". + ----------------|---------------- FileLogger ---------- @@ -560,4 +561,4 @@ Attributes: node |**Required.** The hostname/IP address of the remote Icinga 2 instance. service |**Required.** The service name/port of the remote Icinga 2 instance. config\_files |TODO - accept\_config |TODO \ No newline at end of file + accept\_config |TODO diff --git a/doc/mkdoc.sh b/doc/mkdoc.sh index 1e4e05dc5..28358a0ab 100755 --- a/doc/mkdoc.sh +++ b/doc/mkdoc.sh @@ -1,2 +1,19 @@ #!/bin/sh -pandoc -f markdown_mmd *.md -o icinga2.pdf +cd -- `dirname $0` +cat < + + +HTML + +for file in *.md; do + cat $file + echo +done + +cat <<HTML + + + + +HTML