Skip to content

Commit eea0ee2

Browse files
committed
Use debug groups
1 parent 38b9a1f commit eea0ee2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MCP/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static function () {
122122

123123
// See https://github.com/felixarntz/ai-services/blob/main/docs/Accessing-AI-Services-in-PHP.md for further processing.
124124

125-
WP_CLI::log( "Generated image: $image_url" );
125+
WP_CLI::debug( "Generated image: $image_url", 'ai' );
126126

127127
return $image_url;
128128
}
@@ -172,7 +172,7 @@ static function () {
172172
]
173173
);
174174

175-
\WP_CLI::log( 'Making request...' . print_r( $contents, true ) );
175+
\WP_CLI::debug( 'Making request...' . print_r( $contents, true ), 'ai' );
176176

177177
if ( $service->get_service_slug() === 'openai' ) {
178178
$model = 'gpt-4o';

0 commit comments

Comments
 (0)