@@ -36,7 +36,7 @@ void ApiListener::ConfigGlobHandler(ConfigDirInformation& config, const String&
36
36
CONTEXT (" Creating config update for file '" + file + " '" );
37
37
38
38
Log (LogNotice, " ApiListener" )
39
- << " Creating config update for file '" << file << " '" ;
39
+ << " Creating config update for file '" << file << " '. " ;
40
40
41
41
std::ifstream fp (file.CStr (), std::ifstream::binary);
42
42
if (!fp)
@@ -98,8 +98,17 @@ bool ApiListener::UpdateConfigDir(const ConfigDirInformation& oldConfigInfo, con
98
98
newTimestamp = newConfig->Get (" /.timestamp" );
99
99
100
100
/* skip update if our config is newer */
101
- if (oldTimestamp >= newTimestamp)
101
+ if (oldTimestamp >= newTimestamp) {
102
+ /* TODO: Less ugly */
103
+ Log (LogInformation, " ApiListener" )
104
+ << " Old timestamp '" << std::setprecision (std::numeric_limits<double >::digits10 + 1 )
105
+ << oldTimestamp << " ' is more recent than new one '" << newTimestamp << " '." ;
102
106
return false ;
107
+ }
108
+
109
+ Log (LogInformation, " ApiListener" )
110
+ << " New timestamp '" << std::setprecision (std::numeric_limits<double >::digits10 + 1 ) << newTimestamp
111
+ << " ' is more recent than old one '" << oldTimestamp << " '." ;
103
112
104
113
{
105
114
ObjectLock olock (newConfig);
@@ -266,6 +275,10 @@ Value ApiListener::ConfigUpdateHandler(const MessageOrigin::Ptr& origin, const D
266
275
return Empty;
267
276
}
268
277
278
+ Log (LogInformation, " ApiListener" )
279
+ << " Applying config update from endpoint '" << origin->FromClient ->GetEndpoint ()->GetName () << " ' of zone '"
280
+ << origin->FromZone ->GetName () << " '" ;
281
+
269
282
Dictionary::Ptr updateV1 = params->Get (" update" );
270
283
Dictionary::Ptr updateV2 = params->Get (" update_v2" );
271
284
0 commit comments