Include source module in UWP logging output.

This commit is contained in:
Angel 2019-07-16 15:53:04 -05:00
parent a2b76b0169
commit 1547620469
2 changed files with 7 additions and 2 deletions

View file

@ -17,7 +17,12 @@ impl log::Log for VSLogger {
fn log(&self, record: &Record) {
if self.enabled(record.metadata()) {
let log = format!("RUST: {} - {}\r\n\0", record.level(), record.args());
let log = format!(
"RUST: {} - {} - {}\r\n\0",
record.level(),
record.target(),
record.args()
);
unsafe {
OutputDebugStringA(log.as_ptr());
};

View file

@ -46,7 +46,7 @@ Servo::Servo(GLsizei width, GLsizei height)
CInitOptions o;
o.args = NULL;
o.url = "http://example.com";
o.url = "http://google.com";
o.width = mWindowWidth;
o.height = mWindowHeight;
o.density = 1.0;