Skip to content

Commit

Permalink
Extend message
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Dec 19, 2024
1 parent 88061d5 commit c4f35db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/agent/context/user.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ t.test("usage outside of context", async (t) => {
setUser({ id: "id" });

t.same(logs, [
"setUser(...) was called without a context. The data will not be tracked. Make sure to call setUser(...) within an HTTP request.",
"setUser(...) was called without a context. The user will not be tracked. Make sure to call setUser(...) within an HTTP request. If you're using serverless functions, make sure to use the handler wrapper provided by Zen.",
]);

// Should not log again
Expand Down
2 changes: 1 addition & 1 deletion library/agent/context/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function logWarningSetUserCalledWithoutContext() {

// eslint-disable-next-line no-console
console.warn(
"setUser(...) was called without a context. The data will not be tracked. Make sure to call setUser(...) within an HTTP request."
"setUser(...) was called without a context. The user will not be tracked. Make sure to call setUser(...) within an HTTP request. If you're using serverless functions, make sure to use the handler wrapper provided by Zen."
);

loggedWarningSetUserCalledWithoutContext = true;
Expand Down

0 comments on commit c4f35db

Please sign in to comment.