We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a725534 commit 36f8b34Copy full SHA for 36f8b34
src/clj_ssh/ssh.clj
@@ -80,7 +80,7 @@ Licensed under EPL (http://www.eclipse.org/legal/epl-v10.html)"
80
81
;; Enable java logging of jsch when in clojure 1.2
82
(when-feature deftype
83
- (def ssh-log-levels
+ (def ^{:dynamic true} *ssh-log-levels*
84
{com.jcraft.jsch.Logger/DEBUG :debug
85
com.jcraft.jsch.Logger/INFO :info
86
com.jcraft.jsch.Logger/WARN :warn
@@ -94,7 +94,7 @@ Licensed under EPL (http://www.eclipse.org/legal/epl-v10.html)"
94
(>= level log-level))
95
(log
96
[_ level message]
97
- (logging/log (ssh-log-levels level) message nil "clj-ssh.ssh")))
+ (logging/log (*ssh-log-levels* level) message nil "clj-ssh.ssh")))
98
99
(JSch/setLogger (SshLogger. com.jcraft.jsch.Logger/DEBUG)))
100
0 commit comments