File tree Expand file tree Collapse file tree 5 files changed +23
-3
lines changed Expand file tree Collapse file tree 5 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,4 @@ pom.xml.asc
10
10
.hgignore
11
11
.hg /
12
12
doc /api
13
+ test /debug.log
Original file line number Diff line number Diff line change 9
9
[org.clojure/tools.logging " 0.3.1" ]
10
10
[net.n01se/clojure-jna " 1.0.0" ]
11
11
[robert/hooke " 1.3.0" ]]
12
- :profiles {:dev {:plugins [[lein-codox " 0.9.1" ]]}}
12
+ :profiles {:dev {:plugins [[lein-codox " 0.9.1" ]]}
13
+ :test {:jvm-opts [" -Djava.util.logging.config.file=test/logging.properties" ]}}
13
14
:deploy-repositories ^:replace [[" clojars" {:url " https://clojars.org/repo"
14
15
:username [:gpg :env/clojars_username ]
15
16
:password [:gpg :env/clojars_password ]
Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ build_jars() {
80
80
81
81
save_artifacts () {
82
82
if [ -n " ${CIRCLE_ARTIFACTS:- } " ]; then
83
+ echo " Saving debug log..."
84
+ cp test/debug.log " ${CIRCLE_ARTIFACTS} "
83
85
echo " Copying JARs to CircleCI artifacts..."
84
86
find . -name ' *.jar' -exec cp {} " ${CIRCLE_ARTIFACTS} " \;
85
87
fi
Original file line number Diff line number Diff line change 2
2
(:require [clojure.java.shell :as sh]
3
3
[clojure.string :as str]
4
4
[clojure.test :as test]
5
- [net.n01se.clojure-jna :as jna]))
5
+ [net.n01se.clojure-jna :as jna]
6
+ [clj-libssh2.logging :as logging]))
6
7
7
8
(def ssh-host " 127.0.0.1" )
8
9
(def ssh-port 2222 )
50
51
(f )
51
52
(teardown ))
52
53
54
+ (defn with-really-verbose-logging
55
+ [f]
56
+ (logging/init )
57
+ (f ))
58
+
53
59
(defn fixtures
54
60
[]
55
- (test/use-fixtures :once with-sandbox-sshd))
61
+ (test/use-fixtures :once (test/join-fixtures
62
+ [with-sandbox-sshd
63
+ with-really-verbose-logging])))
Original file line number Diff line number Diff line change
1
+ handlers =java.util.logging.FileHandler
2
+ .level =ALL
3
+
4
+ java.util.logging.SimpleFormatter.format =[%1$tF %1$tT %1$tz] %4$s: %5$s%6$s%n
5
+
6
+ java.util.logging.FileHandler.formatter =java.util.logging.SimpleFormatter
7
+ java.util.logging.FileHandler.level =ALL
8
+ java.util.logging.FileHandler.pattern =test/debug.log
You can’t perform that action at this time.
0 commit comments