Skip to content

Commit

Permalink
Daemon - add process name to logs
Browse files Browse the repository at this point in the history
this helps with interleaving logs getting mixed up
  • Loading branch information
samaaron committed Mar 2, 2023
1 parent 8fa361e commit 6d10579
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/server/ruby/bin/daemon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,8 @@ def send_scsynth_info_to_gui!(info_s)
hw_info_s = scsynth_log_str(info_m)

Util.log "Sending scsynth info to GUI..."
Util.log "\nRaw:\n---\n #{info_s}"
Util.log "\nExtracted:\n---------\n #{info_m.to_s}"
Util.log "\nPretty:\n------\n #{hw_info_s}"
Util.log "\n---\n"

Util.log info_m
Util.log hw_info_s
@api_server.send("localhost", @ports["gui-listen-to-spider"], "/scsynth/info", hw_info_s)
rescue => e
Util.log "Exception sending scsynth info to gui:"
Expand Down Expand Up @@ -794,7 +791,7 @@ def boot
@log_file << line
@log_file.flush
@log << line if @record_log
Util.log "log: #{@log.encoding}, #{line.encoding}, #{line}"
Util.log "[#{File.basename(@cmd, ".*")}] #{line}"
rescue IOError
# don't attempt to write
end
Expand Down

0 comments on commit 6d10579

Please sign in to comment.