Skip to content

Commit

Permalink
Merge pull request xmake-io#4445 from Domain/distcc
Browse files Browse the repository at this point in the history
Show remote IP in detail log
  • Loading branch information
waruqi authored Nov 29, 2023
2 parents 2b53380 + 081f43c commit a5f0638
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmake/modules/private/service/distcc_build/client_session.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down

0 comments on commit a5f0638

Please sign in to comment.