diff options
| author | ruki <[email protected]> | 2023-11-29 16:39:18 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-29 16:39:18 +0800 |
| commit | a5f06389a864aedcf949245bd0c62e77fa8dc284 (patch) | |
| tree | fcb8b7669e1a4de7b9cd17c7890e0deb5f9130c3 | |
| parent | 2b53380e9e8cbf163150662873d8d5b0a41e127f (diff) | |
| parent | 081f43cdef8d2ecce621fb2666282669a038033f (diff) | |
Merge pull request #4445 from Domain/distcc
Show remote IP in detail log
| -rw-r--r-- | xmake/modules/private/service/distcc_build/client_session.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/service/distcc_build/client_session.lua b/xmake/modules/private/service/distcc_build/client_session.lua index 2048531fc..9e6233dba 100644 --- a/xmake/modules/private/service/distcc_build/client_session.lua +++ b/xmake/modules/private/service/distcc_build/client_session.lua @@ -161,7 +161,7 @@ function client_session:compile(sourcefile, objectfile, cppfile, cppflags, opt) end end os.tryrm(cppfile) - assert(ok, errors or "unknown errors!") + assert(ok, "%s: %s", self, errors or "unknown errors!") return outdata, errdata end @@ -171,7 +171,7 @@ function client_session:workdir() end function client_session:__tostring() - return string.format("<session %s>", self:id()) + return string.format("<session %s: %s>", self:id(), self._ADDR) end function main(client, session_id, token, addr, port, opt) |
