Cleanup of colour code. Use is_a_tty. (#1621)

* Cleanup of colour code. Use is_a_tty.

* Fix test build.

* Another fix.
This commit is contained in:
Gav Wood
2016-07-15 10:11:14 +02:00
committed by GitHub
parent d5d0cb0b47
commit d14b6871a5
12 changed files with 46 additions and 48 deletions

View File

@@ -35,7 +35,7 @@ use util::rlp::{RlpStream, Rlp, UntrustedRlp};
use util::journaldb;
use util::journaldb::JournalDB;
use util::kvdb::*;
use util::{Applyable, Stream, View, PerfTimer, Itertools, Colour};
use util::{Stream, View, PerfTimer, Itertools, Colour};
use util::{Mutex, RwLock};
// other
@@ -618,7 +618,7 @@ impl Client {
}
}
*previous_enode = Some(url.into());
info!(target: "mode", "Public node URL: {}", url.apply(Colour::White.bold()));
info!(target: "mode", "Public node URL: {}", Colour::White.bold().paint(url));
}
}