Projects tigase _server server-core Issues #1064
VHostExtensions are not correctly logged (#1064)
wojciech.kapcia@tigase.net opened 5 years ago

Currently they output default .toString() which is less than userfull:

2019-08-12 21:45:12.783 [disco Queue Worker 0]  DomainFilter.getDomains()          FINEST:   Domains read from user session: ALL for VHost: Domain: wojtek-local.tigase.eu, enabled: true, anonym: true, register: true, maxusers: 0, tls: true, s2sSecret: 66c623fe-8524-4ca9-8a67-8e07e7d96b55, domainFilter: ALL, domainFilterDomains: null, c2sPortsAllowed: null, saslAllowedMechanisms: null, trustedJids: tigase.auth.BruteForceLockerBean$BruteForceLockerVHostExtension@6ff972f, tigase.server.BasicComponent$ServerInfoVHostItemExtension@43fd0994, tigase.server.xmppclient.ClientTrustManagerFactory$ClientTrustVHostItemExtension@702bf0b0, tigase.server.xmppclient.SeeOtherHost$SeeOtherHostVHostItemExtension@72744861, tigase.xmpp.impl.PresenceSubscription$PresenceSubscriptionVHostItemExtension@848efef, tigase.archive.MessageArchiveVHostItemExtension@23d2f6db

Options:

  • implement correct .toString() in all extensions: will be readable and how we want it, but we can't enforce it;
  • use tigase.vhosts.VHostItemExtension#toElement: it will output element, which may not necessarily be the best for readability.
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Spent time
1h
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1064
Please wait...
Page is in error, reload to recover