Skip to content

Unnecessary console log #1070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ddekster opened this issue Feb 28, 2025 · 4 comments
Open

Unnecessary console log #1070

ddekster opened this issue Feb 28, 2025 · 4 comments

Comments

@ddekster
Copy link

My application log became full with this information, which happens immediately after the application starts.
I have several different places where I use this library, and everywhere is the same.

<ref *1> Element {
name: 'mechanism',
parent: Element {
name: 'mechanisms',
parent: Element {
name: 'stream:features',
parent: null,
children: [Array],
attrs: [Object]
},
children: [ [Circular *1], [Element], [Element], [Element], [Element] ],
attrs: { xmlns: 'urn:ietf:params:xml:ns:xmpp-sasl' }
},
children: [ 'PLAIN' ],
attrs: {}
} object
<ref *1> Element {
name: 'mechanism',
parent: Element {
name: 'mechanisms',
parent: Element {
name: 'stream:features',
parent: null,
children: [Array],
attrs: [Object]
},
children: [ [Element], [Circular *1], [Element], [Element], [Element] ],
attrs: { xmlns: 'urn:ietf:params:xml:ns:xmpp-sasl' }
},
children: [ 'ANONYMOUS' ],
attrs: {}
} object
<ref *1> Element {
name: 'mechanism',
parent: Element {
name: 'mechanisms',
parent: Element {
name: 'stream:features',
parent: null,
children: [Array],
attrs: [Object]
},
children: [ [Element], [Element], [Circular *1], [Element], [Element] ],
attrs: { xmlns: 'urn:ietf:params:xml:ns:xmpp-sasl' }
},
children: [ 'SCRAM-SHA-1' ],
attrs: {}
} object
<ref *1> Element {
name: 'mechanism',
parent: Element {
name: 'mechanisms',
parent: Element {
name: 'stream:features',
parent: null,
children: [Array],
attrs: [Object]
},
children: [ [Element], [Element], [Element], [Circular *1], [Element] ],
attrs: { xmlns: 'urn:ietf:params:xml:ns:xmpp-sasl' }
},
children: [ 'CRAM-MD5' ],
attrs: {}
} object
<ref *1> Element {
name: 'mechanism',
parent: Element {
name: 'mechanisms',
parent: Element {
name: 'stream:features',
parent: null,
children: [Array],
attrs: [Object]
},
children: [ [Element], [Element], [Element], [Element], [Circular *1] ],
attrs: { xmlns: 'urn:ietf:params:xml:ns:xmpp-sasl' }
},
children: [ 'DIGEST-MD5' ],
attrs: {}
} object
Element {
name: 'challenge',
parent: null,
children: [
'cj00NTY2YjBmYzFlYTIzMDNhZDk1MjhkN2E5NDc4MDg1YzExMjA4Y2FmLTAzZWMtNGUyMS1iNDdkLWQzMWQxZWU4OTZlYyxzPWRBaG94QnI1blE4dTlaYTF4L0FSN1lCNFRtakE4Zjg0LGk9NDA5Ng=='
],
attrs: { xmlns: 'urn:ietf:params:xml:ns:xmpp-sasl' }
} object

@vaaas
Copy link

vaaas commented Feb 28, 2025

Hello. After investigating, this is caused by @xmpp/sasl version 0.13.4, but it has been removed from main.

Could we have a version bump? It would be very nice. Thank you.

@vaaas
Copy link

vaaas commented Feb 28, 2025

@ddekster
Copy link
Author

This is the installed package.json
{
"name": "@xmpp/client",
"repository": "github:xmppjs/xmpp.js",
"homepage": "http://github.com/xmppjs/xmpp.js",
"bugs": "http://github.com/xmppjs/xmpp.js/issues",
"version": "0.13.4",
"license": "ISC",
"dependencies": {
"@babel/cli": "^7.26.4",
"@babel/core": "^7.26.0",
"@babel/node": "^7.26.0",
"@babel/plugin-transform-react-jsx": "^7.25.9",
"@xmpp/client-core": "^0.13.3",
"@xmpp/iq": "^0.13.3",
"@xmpp/middleware": "^0.13.3",
"@xmpp/reconnect": "^0.13.2",
"@xmpp/resolve": "^0.13.3",
"@xmpp/resource-binding": "^0.13.3",
"@xmpp/sasl": "^0.13.4",
"@xmpp/sasl-anonymous": "^0.13.2",
"@xmpp/sasl-plain": "^0.13.2",
"@xmpp/sasl-scram-sha-1": "^0.13.2",
"@xmpp/session-establishment": "^0.13.3",
"@xmpp/starttls": "^0.13.3",
"@xmpp/stream-features": "^0.13.2",
"@xmpp/stream-management": "^0.13.3",
"@xmpp/tcp": "^0.13.3",
"@xmpp/tls": "^0.13.3",
"@xmpp/websocket": "^0.13.3",
"babel-plugin-jsx-pragmatic": "^1.0.2"
},
"browser": "./browser.js",
"react-native": "./react-native.js",
"engines": {
"node": ">= 14"
},
"publishConfig": {
"access": "public"
},
"gitHead": "92b43cb3185816efea3d9b11ea66167fd1b7f643"
}

@ddekster
Copy link
Author

what is the status of this? Our logs are filled with unnecessary info, and it's hard to find anything useful there :)

CamilleDrapier added a commit to CamilleDrapier/xmpp.js that referenced this issue Apr 15, 2025
sonnyp pushed a commit that referenced this issue Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants