Skip to content

Commit

Permalink
fixup logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Mar 23, 2024
1 parent a62fe38 commit 5e0e012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/headless/shared/connection/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function generateResource () {

export function setStropheLogging () {
const level = settings_api.get('loglevel');
Strophe.setLogLevel(Strophe.LogLevel[level.toUpperCase()])
Strophe.setLogLevel(Strophe.LogLevel[level.toUpperCase()]);

const lmap = {};
lmap[Strophe.LogLevel.DEBUG] = 'debug';
Expand Down
2 changes: 1 addition & 1 deletion src/shared/tests/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ async function _initConverse (settings) {
discover_connection_methods: false,
enable_smacks: false,
i18n: 'en',
loglevel: window.location.pathname === 'debug.html' ? 'debug' : 'warn',
loglevel: window.location.pathname === 'debug.html' ? 'debug' : 'error',
no_trimming: true,
persistent_store: 'localStorage',
play_sounds: false,
Expand Down

0 comments on commit 5e0e012

Please sign in to comment.