Project

General

Profile

Feature #5423

Log efective configuration after variable substitution but before processing it

Added by Wojciech Kapcia TigaseTeam almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Database:
n/a
Source Code Disclaimer:

Description

Currently we lack any information about exact configuration being used (in logs) and if there is some problem/exception resulting in server failing we don't have config-dump.properties file to investigate. This is especially important with variable substitution funcionality

Associated revisions

Revision e0f3d5e4 (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 2 years ago

#5423: added log entry with effective configuration (configuration with resolved variables)

History

#1 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 2 years ago

I've added entry to log with level CONFIG with configuration which was loaded and with resolved variables. Below is an example entry with configuration:

2017-04-28 15:42:35.394 [main]             ConfigHolder.loadConfiguration()        CONFIG:   Loaded configuration:
--cluster-mode = true
--debug = server
--licence-library-test-mode = true
--new-connections-throttling = '5290:1100'
--test = false
--vhost-disable-dns-check = true
--virt-hosts = zeus
admins = [ 'admin@zeus', 'http@macbook-pro-andrzej.local' ]
'config-type' = '--gen-config-def'
test = false
user = 'andrzej'
user_home = '/Users/andrzej/Development/runtime/tigase-bootstrap'
dataSource {
    default () {
        uri = 'jdbc:postgresql://127.0.0.1/tigase?user=XXX&password=XXX&autoCreateUser=true'
    }
}
c2s {
    connections () {
        5224 () {
            socket = 'ssl'
        }
    }
    seeOtherHost (class: tigase.server.xmppclient.SeeOtherHostDualIP) {}
    'urn:xmpp:sm:3' () {
        'resumption-timeout' = 90
    }
}
'ext-disco' () {
    externalServiceDiscoveryRepository {
        items = [ 'TURN server (TCP):host=turn.tigase.org:type=turn:name=TURN Server:transport=TCP', 'TURN server (UDP):host=turn.tigase.org:type=turn:name=TURN Server:transport=UDP', 'FTP server:host=ftp.tigase.org:type=ftp:name=FTP Server:transport=TCP' ]
    }
}
http {
    'api-keys' = [ 'test123', 'open_access:regex=/rest/licence/.*' ]
}
'message-archive' (class: tigase.archive.MessageArchiveComponent) {
    'tags-support' = true
    repositoryPool {
        statistics = true
    }
}
msgRepository {
    'user-store-limit-enable' = true
}
muc () {
    admin (class: tigase.muc.modules.ModeratorModule3) {}
    strategy (class: tigase.muc.cluster.ClusteredRoomStrategyV2) {}
}
pubsub () {
    'auto-subscribe-node-creator' = false
    'persistent-pep' = true
    'send-last-published-item-on-presence' = true
    'subscribe-by-presence-filtered-notifications' = true
    'trust-every-entity' = true
    strategy (class: tigase.pubsub.cluster.ClusteredNodeStrategy) {}
}
push () {
    'apns-binary-api' () {
        'cert-file' = '/Users/andrzej/Desktop/TigaseiOSMessenger.p12'
        'cert-password' = 'alamakotaTigase'
    }
}
'sess-man' {
    beans = 'pep,urn:xmpp:mam:1,message-archive-xep-0136'
    amp () {
        'msg-pubsub-jid' = 'pubsub.zeus'
        'msg-pubsub-node' = 'test'
        'msg-pubsub-publisher' = 'sess-man@mbp-andrzej.local'
        msgoffline {
            'pubsub-publisher-notifier' () {}
        }
    }
    'message-archive' () {
        'msg-archive-paths' = [ '/message/body', '/message/subject' ]
    }
    motd () {}
    'urn:xmpp:extdisco:2' () {}
    'urn:xmpp:push:0' () {}
}
upload () {}
'vhost-man' {
    'domains-per-user-limit' = 10000
}

#2 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 2 years ago

  • Status changed from New to In QA
  • Assignee changed from Andrzej Wójcik to Wojciech Kapcia

#3 Updated by Wojciech Kapcia TigaseTeam almost 2 years ago

  • Status changed from In QA to Closed
  • % Done changed from 0 to 100

Thanks, it's perfect now and we have information what is being used (and it mimics previous version in this regard)

Also available in: Atom PDF