Skip to content

Commit

Permalink
add run parameters into log
Browse files Browse the repository at this point in the history
  • Loading branch information
AGulev committed May 3, 2024
1 parent 57c2dca commit 0963d31
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions editor/src/clj/editor/engine.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
[editor.fs :as fs]
[editor.process :as process]
[editor.prefs :as prefs]
[service.log :as log]
[editor.process :as process]
[editor.protobuf :as protobuf]
[editor.resource :as resource]
Expand Down Expand Up @@ -278,10 +279,10 @@
;; the output of dmengine because there is a risk of the stream
;; buffer filling up, stopping the process.
;; https://www.securecoding.cert.org/confluence/display/java/FIO07-J.+Do+not+let+external+processes+block+on+IO+buffers
(let [p (do (println "opts:" opts)
(println "command:" command)
(println "args:" args)
(apply process/start! opts command args))]
(let [p (do (log/info :message (str "opts: " opts))
(log/info :message (str "command: " command))
(log/info :message (str "args: " args))
(apply process/start! opts command args))]
{:process p
:name (.getName engine)
:log-stream (process/out p)})))

0 comments on commit 0963d31

Please sign in to comment.