Projects tigase _server server-core Issues #811
Log efective configuration after variable substitution but before processing it (#811)
Wojciech Kapcia (Tigase) opened 8 years ago

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

  • Andrzej Wójcik (Tigase) commented 8 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
    }
    
    
  • Wojciech Kapcia (Tigase) commented 8 years ago

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

issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
RedmineID
5423
Version
tigase-server-8.0.0
Spent time
0
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#811
Please wait...
Page is in error, reload to recover