Skip to content

Commit

Permalink
Contextual help: log site intent via debug instead of a warning (#98744)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo authored Jan 22, 2025
1 parent afe6165 commit 5b4fd7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/data-stores/src/contextual-help/contextual-help.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { __ } from '@wordpress/i18n';
import debugFactory from 'debug';
import { RESULT_TOUR, RESULT_VIDEO } from './constants';

const debug = debugFactory( 'calypso:data-stores:contextual-help' );

export type LinksForSection = {
readonly link: string;
post_id?: number;
Expand Down Expand Up @@ -611,8 +614,7 @@ export function getContextResults( section: string, siteIntent: string ) {
}

if ( siteIntent ) {
// eslint-disable-next-line no-console
console.warn( 'Site intent is', siteIntent );
debug( `Site intent: ${ siteIntent }` );
}

// make sure editorially to show at most one tour and one video at once
Expand Down

0 comments on commit 5b4fd7b

Please sign in to comment.