Skip to content

Commit

Permalink
Fix example log_events.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
doonv committed Dec 21, 2023
1 parent f1bd56f commit d90657e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/app/log_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use std::time::SystemTime;

use bevy::log::{Level, LogMessage};
use bevy::log::{Level, LogEvent};
use bevy::prelude::*;

#[derive(Component)]
Expand Down Expand Up @@ -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<ConsoleText>>,
mut log_messages: EventReader<LogMessage>,
mut log_events: EventReader<LogEvent>,
) {
let mut text = query.single_mut();
for LogMessage {
for LogEvent {
message,
name,
target,
Expand All @@ -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.

Expand Down

0 comments on commit d90657e

Please sign in to comment.