Skip to content
Snippets Groups Projects
Commit 13ea4bdb authored by rswindell's avatar rswindell
Browse files

Remove 'e' from File.open() modes, but place a reminder comment to revisit.

Added destination address of outbound file in "Attempting callout" log msg.
parent 8aaad788
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ function lock_flow(file)
}
log(LOG_DEBUG, "Locking "+ret.bsy.name);
if (!ret.bsy.open("web")) {
if (!ret.bsy.open("wb")) { // Used to include 'e' mode flag (which never worked)
log(LOG_WARNING, "Error " + ret.bsy.error + " creating " + ret.bsy.name);
if (!take_lockfile(ret.bsy)) {
log(LOG_NOTICE, "Lock on "+ret.bsy.name+" failed.");
......@@ -320,7 +320,7 @@ function rename_or_move(src, dst)
if (!sf.open("rb"))
return false;
df = new File(dst);
if (!df.open("web")) {
if (!df.open("wb")) { // Used to include 'e' mode flag (which never worked)
sf.close();
return false;
}
......@@ -723,7 +723,7 @@ function run_one_outbound_dir(dir, scfg, ran)
}
}
if (i<flow_files.length) {
log(LOG_INFO, "Attempting callout for file "+flow_files[i]);
log(LOG_INFO, "Attempting callout for " + addr + ", file: " + flow_files[i]);
locks.push(lock_files);
// Use a try/catch to ensure we clean up the lock files.
callout(addr, scfg, locks);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment