Back
debugf (clj)
(source)macro
(debugf & args)
Examples
braidchat/braid
(ns braid.core.server.sync-handler
(:require
[braid.core.hooks :as hooks]
[braid.core.server.sync-helpers :as helpers]
[taoensso.timbre :as timbre :refer [debugf]]
[braid.chat.db.group :as group]
[braid.chat.db.thread :as thread]
;; FIXME: should do these view base.api/something
[braid.base.server.ws-handler :refer [anon-msg-handler
event-msg-handler]]))
(defmethod anon-msg-handler :chsk/uidport-close
[ev-msg]
(debugf "Closing connection for anonymous client %s" (:client-id ev-msg))
(helpers/remove-anonymous-reader (get-in ev-msg [:ring-req :session :fake-id])))
gizmo385/discord.clj
(ns discord.extensions.reactions
(:require
[clojure.core.async :refer [go]]
[clojure.string :as s]
[discord.types.messages :as msgs]
[discord.gateway :as gw]
[taoensso.timbre :as timbre]))
;;; We don't actually need to do anything here
(defmethod handle-message-reaction-by-name :default
[reaction _]
(timbre/debugf "Ignoring message reaction: %s" reaction))
yapsterapp/a-frame
(ns a-frame.log
"overrides of the timbre logging macros
which set a context from an a-frame
interceptor-context key, or app-ctx key"
#?(:cljs (:require-macros [a-frame.log]))
(:require
[taoensso.timbre :as timbre]
[a-frame.schema :as af.schema]))
(defmacro debugf
[context-src & args]
`(with-a-frame-log-context ~context-src
(timbre/log! :debug :f ~args ~{:?line (@#'timbre/fline &form)})))
pink-gorilla/goldly
(ns goldly.component.load
(:require
[re-frame.core :as rf]
[taoensso.timbre :as timbre :refer-macros [debug debugf info infof error errorf]]))
(rf/reg-event-db
:index/store
(fn [db [_ {:keys [type data] :as x}]]
(let [index (:index db)]
(infof "index/store type: %s" x)
(debugf "index/store type: %s data: %s" type data)
(-> (if (nil? index)
(assoc db :index {})
db)
(assoc-in [:index type] data)))))
kronkltd/jiksnu
(ns jiksnu.step-definitions
(:require [jiksnu.helpers.action-helpers :as helpers.action]
[jiksnu.helpers.http-helpers :as helpers.http]
[jiksnu.helpers.page-helpers :as page-helpers
:refer [by-css by-model current-page element expect]]
[jiksnu.pages.LoginPage :as lp :refer [LoginPage login]]
[jiksnu.pages.RegisterPage :refer [RegisterPage]]
[jiksnu.PageObjectMap :as pom]
[taoensso.timbre :as timbre])
(:use-macros [jiksnu.step-macros :only [step-definitions Given When Then And]]))
(Then #"^I should be at the \"([^\"]*)\" page$" [page-name next]
(timbre/debugf "Asserting to be at page - %s" page-name)
(.. (expect "home")
-to -eventually (equal page-name)
-and (notify next)))