Commit 3b45a8ff authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

software/js-drone: use date to name logs

parent bfa8746e
...@@ -30,7 +30,7 @@ md5sum = 7d063b33dbdd7548e2a23bc4d8a66a43 ...@@ -30,7 +30,7 @@ md5sum = 7d063b33dbdd7548e2a23bc4d8a66a43
[main] [main]
_update_hash_filename_ = drone-scripts/main.js.jinja _update_hash_filename_ = drone-scripts/main.js.jinja
md5sum = 8bc77ebd49e8e6fe060de507bccc44d5 md5sum = 7b7073788175c45116bf72dbda4ba044
[pubsub] [pubsub]
_update_hash_filename_ = drone-scripts/pubsub.js.jinja _update_hash_filename_ = drone-scripts/pubsub.js.jinja
......
...@@ -18,7 +18,7 @@ import { exit, open } from "std"; ...@@ -18,7 +18,7 @@ import { exit, open } from "std";
var CONF_PATH = {{ json_module.dumps(configuration) }}, var CONF_PATH = {{ json_module.dumps(configuration) }},
conf_file = open(CONF_PATH, "r"), conf_file = open(CONF_PATH, "r"),
configuration = JSON.parse(conf_file.readAsString()), configuration = JSON.parse(conf_file.readAsString()),
LOG_FILE = "{{ log_dir }}/mavsdk-log", LOG_FILE = "{{ log_dir }}/" + new Date().toISOString() + ".log",
pubsubWorker, pubsubWorker,
worker, worker,
user_script = scriptArgs[1], user_script = scriptArgs[1],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment