From d90657ea9c3d8ec9ba3a5675c07b6033a317d6b4 Mon Sep 17 00:00:00 2001 From: Doonv <58695417+doonv@users.noreply.github.com> Date: Thu, 21 Dec 2023 17:34:38 +0200 Subject: [PATCH] Fix example log_events.rs --- examples/app/log_events.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/app/log_events.rs b/examples/app/log_events.rs index d6fcd0ff903ba..8a84535352ba1 100644 --- a/examples/app/log_events.rs +++ b/examples/app/log_events.rs @@ -4,7 +4,7 @@ use std::time::SystemTime; -use bevy::log::{Level, LogMessage}; +use bevy::log::{Level, LogEvent}; use bevy::prelude::*; #[derive(Component)] @@ -38,10 +38,10 @@ fn setup(mut commands: Commands) { // This system reads all incoming logs and then outputs them to the `ConsoleText` entity fn log_system( mut query: Query<&mut Text, With>, - mut log_messages: EventReader, + mut log_events: EventReader, ) { let mut text = query.single_mut(); - for LogMessage { + for LogEvent { message, name, target, @@ -50,7 +50,7 @@ fn log_system( file, line, time, - } in log_messages.read() + } in log_events.read() { // This part is just pushing a bunch of `TextSection`s to the UI.