Skip to content

Commit

Permalink
coach
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed Apr 22, 2024
1 parent 7f9e835 commit 1e6155c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/compojure/api/meta.clj
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,12 @@
(get coach :default)
:print)
msg (str "This looks like it could be a static context: " (pr-str {:form &form :meta (meta &form)})
"\n\n"
"If you intend for the body of this context to be evaluated on every request, please "
"use (context ... :dynamic true ...)."
"\n\n"
"If you intend for the body of this context to be fixed for every request, please "
"use (context ... :static true ...)."
"\n\n"
"To suppress this message for this namespace use -Dcompojure.api.meta.static-context-coach="
"{" nsym :off "}")]
Expand Down

0 comments on commit 1e6155c

Please sign in to comment.