Skip to content

Commit 18cc911

Browse files
davpratgmarciani
authored andcommitted
Fix file mode for console output log
This change fixes the file open mode for the compute console output log. The log was being opened in write mode instead of append mode. This would cause the log file to be truncated on every iteration of the clustermgtd loop. Signed-off-by: David Pratt <[email protected]>
1 parent c6d47ff commit 18cc911

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ This file is used to list changes made in each version of the aws-parallelcluste
66
3.5.1
77
------
88

9-
**CHANGES**
10-
- There were no changes for this version.
9+
**BUG FIXES**
10+
- Fix for compute_console_output log file being truncated at every clustermgtd iteration.
1111

1212
3.5.0
1313
------

src/slurm_plugin/logging/parallelcluster_clustermgtd_logging.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ format=%(asctime)s - %(message)s
3333
class=FileHandler
3434
level=INFO
3535
formatter=computeConsoleFormatter
36-
args=('/var/log/parallelcluster/compute_console_output.log', 'w', None, False)
36+
args=('/var/log/parallelcluster/compute_console_output.log', 'a', None, False)

0 commit comments

Comments
 (0)