diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2011-12-22 17:53:53 -0800 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-12-22 17:53:53 -0800 |
| commit | f0dfbe7b1b8d630488441982cf3d46f82a3a89db (patch) | |
| tree | 8e26605c3d3628cd336e566b8ec7391c058c3a1a /src/libstd | |
| parent | ccb5b6fb259d5de9be751175fc53df1eaea4cd2c (diff) | |
| download | rust-f0dfbe7b1b8d630488441982cf3d46f82a3a89db.tar.gz rust-f0dfbe7b1b8d630488441982cf3d46f82a3a89db.zip | |
Register new snapshots, purge log_err and log_full in favour of log(...).
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io.rs b/src/libstd/io.rs index 9719b8578e3..deb31f59ba0 100644 --- a/src/libstd/io.rs +++ b/src/libstd/io.rs @@ -292,7 +292,7 @@ obj fd_buf_writer(fd: fd_t, res: option::t<@fd_res>) { let nout = os::libc::write(fd, vbuf, len); if nout < 0 { #error("error dumping buffer"); - log_full(core::error, sys::last_os_error()); + log(error, sys::last_os_error()); fail; } count += nout as uint; @@ -334,7 +334,7 @@ fn file_buf_writer(path: str, os::libc_constants::S_IWUSR) }); ret if fd < 0i32 { - log_full(core::error, sys::last_os_error()); + log(error, sys::last_os_error()); result::err("error opening " + path) } else { result::ok(fd_buf_writer(fd, option::some(@fd_res(fd)))) |
