diff options
| author | Domain <[email protected]> | 2023-11-29 11:11:34 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-29 11:11:34 +0800 |
| commit | 081f43cdef8d2ecce621fb2666282669a038033f (patch) | |
| tree | b494b2b565186922eff359d51defbc42e58b3e8a | |
| parent | 5e7eeeec323eb073dc32331ae5748fa397afada7 (diff) | |
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) |
