mirror of
https://github.com/NixOS/nix
synced 2025-07-05 16:31:47 +02:00
* The `-v' flag no longer takes an argument; it should be repeated
instead (e.g., `-vvvv' for lots of output). Default is to only print error messages.
This commit is contained in:
parent
3b521bb1bd
commit
0a0c1fcb4d
6 changed files with 29 additions and 38 deletions
11
src/util.hh
11
src/util.hh
|
@ -73,10 +73,11 @@ void deletePath(string path);
|
|||
/* Messages. */
|
||||
|
||||
typedef enum {
|
||||
lvlError = 0,
|
||||
lvlNormal = 5,
|
||||
lvlDebug = 10,
|
||||
lvlDebugMore = 15
|
||||
lvlError,
|
||||
lvlTalkative,
|
||||
lvlChatty,
|
||||
lvlDebug,
|
||||
lvlVomit
|
||||
} Verbosity;
|
||||
|
||||
extern Verbosity verbosity; /* supress msgs > this */
|
||||
|
@ -91,7 +92,7 @@ public:
|
|||
};
|
||||
|
||||
void msg(Verbosity level, const format & f);
|
||||
void debug(const format & f); /* shorthand */
|
||||
void debug(const format & f); /* short-hand for msg(lvlDebug, ...) */
|
||||
|
||||
|
||||
/* Wrappers arount read()/write() that read/write exactly the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue