dump user name, date and SyncEvolution at beginning of debug log

git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@443 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
Patrick Ohly 2007-11-04 17:33:27 +00:00
parent ada87c2cb7
commit e207027ae1
1 changed files with 6 additions and 0 deletions

View File

@ -570,6 +570,12 @@ int EvolutionSyncClient::sync()
arrayptr<char> loglevel(config.getSyncMLNode()->readPropertyValue("logLevel"));
sourceList.setLogdir(logdir, atoi(maxlogdirs), atoi(loglevel));
// dump some summary information at the beginning of the log
LOG.debug("SyncML server account: %s", config.getAccessConfig().getUsername());
LOG.debug("client: SyncEvolution %s", VERSION);
time_t now = time(NULL);
LOG.debug("current UTC date and time: %s", asctime(gmtime(&now)));
SyncSourceConfig *sourceconfigs = config.getSyncSourceConfigs();
for (int index = 0; index < config.getNumSources(); index++) {
ManagementNode &node(*config.getSyncSourceNode(index));