mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Include source module in UWP logging output.
This commit is contained in:
parent
a2b76b0169
commit
1547620469
2 changed files with 7 additions and 2 deletions
|
@ -17,7 +17,12 @@ impl log::Log for VSLogger {
|
||||||
|
|
||||||
fn log(&self, record: &Record) {
|
fn log(&self, record: &Record) {
|
||||||
if self.enabled(record.metadata()) {
|
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 {
|
unsafe {
|
||||||
OutputDebugStringA(log.as_ptr());
|
OutputDebugStringA(log.as_ptr());
|
||||||
};
|
};
|
||||||
|
|
|
@ -46,7 +46,7 @@ Servo::Servo(GLsizei width, GLsizei height)
|
||||||
|
|
||||||
CInitOptions o;
|
CInitOptions o;
|
||||||
o.args = NULL;
|
o.args = NULL;
|
||||||
o.url = "http://example.com";
|
o.url = "http://google.com";
|
||||||
o.width = mWindowWidth;
|
o.width = mWindowWidth;
|
||||||
o.height = mWindowHeight;
|
o.height = mWindowHeight;
|
||||||
o.density = 1.0;
|
o.density = 1.0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue