Skip to content

Commit

Permalink
log: Only show empty response on devMode
Browse files Browse the repository at this point in the history
  • Loading branch information
calcitem committed Jul 20, 2024
1 parent a256303 commit c2d17c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ui/flutter_app/lib/game_page/services/engine/engine.dart
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,13 @@ class Engine {
if (response.contains(prefix)) {
return response;
} else {
logger.w("$_logTag Unexpected engine response: $response");
if (response == "") {
if (EnvironmentConfig.devMode) {
logger.w("$_logTag Empty response");
}
} else {
logger.w("$_logTag Unexpected engine response: $response");
}
}
}
}
Expand Down

0 comments on commit c2d17c7

Please sign in to comment.