mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-25 16:33:12 +09:00
Merge pull request #1016 from bbassie/fix/improve-logging
Add context to connection and response log messages
This commit is contained in:
1 parent
a80b035a0a
commit
5b0f629b6e
3 files changed
+9
-4
No files matched your search
@@ -444,7 +444,7 @@ export class Link {
|
||||
let pending = this._pendingRequests.get(message.dst.requestId!);
|
||||
if (!pending) {
|
||||
throw new libErrors.InvalidMessage(
|
||||
`Received response ${message.dst.requestId} without a pending request`
|
||||
`Received response ${message.dst.requestId} from ${message.src} without a pending request`
|
||||
);
|
||||
}
|
||||
|
||||
@@ -465,7 +465,7 @@ export class Link {
|
||||
let pending = this._pendingRequests.get(message.dst.requestId!);
|
||||
if (!pending) {
|
||||
throw new libErrors.InvalidMessage(
|
||||
`Received error response ${message.dst.requestId} without a pending request`
|
||||
`Received error response ${message.dst.requestId} from ${message.src} without a pending request`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user