diff options
| author | ruki <[email protected]> | 2017-10-16 23:35:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-10-16 15:35:31 +0800 |
| commit | c90ccdbf3a81822a660390298d5a5a442c8a496d (patch) | |
| tree | 79b59f76644f2bb00949a3d2f5e8d7dab8833700 /xmake/core/base/utils.lua | |
| parent | a08d6c9117e33b2742ce992f8217090bdcdd568f (diff) | |
improve log
Diffstat (limited to 'xmake/core/base/utils.lua')
| -rw-r--r-- | xmake/core/base/utils.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/core/base/utils.lua b/xmake/core/base/utils.lua index 49b05ea0a..e28938648 100644 --- a/xmake/core/base/utils.lua +++ b/xmake/core/base/utils.lua @@ -147,9 +147,8 @@ function utils.verror(format, ...) -- enable verbose? if option.get("verbose") and format ~= nil then - - -- trace utils.cprint("${bright red}error: ${clear}" .. string.tryformat(format, ...)) + log.flush() end end @@ -159,6 +158,7 @@ function utils.error(format, ...) -- trace if format ~= nil then utils.cprint("${bright red}error: ${clear}" .. string.tryformat(format, ...)) + log.flush() end end @@ -180,6 +180,9 @@ function utils.warning(format, ...) utils.cprint(msg) warnings[msg] = true end + + -- flush + log.flush() end -- ifelse, a? b : c |
