Skip to content

Commit

Permalink
NC | account by id | TEMP - add logs for config file creation
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Prinz Setter <[email protected]>
  • Loading branch information
alphaprinz committed Jul 1, 2024
1 parent 6fabca8 commit 2284ee4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/native_fs_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ async function create_config_file(fs_context, schema_dir, config_path, config_da
} catch (err) {
if (err.code !== 'ENOENT') throw err;
}
dbg.log1('create_config_file:: config_path:', config_path, 'config_data:', config_data, 'is_gpfs:', open_mode);
dbg.log0('create_config_file:: config_path:', config_path, 'config_data:', config_data, 'is_gpfs:', open_mode);
// create config dir if it does not exist
await _create_path(schema_dir, fs_context, config.BASE_MODE_CONFIG_DIR);
// when using GPFS open dst file as soon as possible for later linkat validation
Expand All @@ -288,11 +288,11 @@ async function create_config_file(fs_context, schema_dir, config_path, config_da
} else {
src_stat = await nb_native().fs.stat(fs_context, open_path);
}
dbg.log1('create_config_file:: moving from:', open_path, 'to:', config_path, 'is_gpfs=', is_gpfs);
dbg.log0('create_config_file:: moving from:', open_path, 'to:', config_path, 'is_gpfs=', is_gpfs);

await safe_move(fs_context, open_path, config_path, src_stat, gpfs_options, tmp_dir_path);

dbg.log1('create_config_file:: done', config_path);
dbg.log0('create_config_file:: done', config_path);
} catch (err) {
dbg.error('create_config_file:: error', err);
throw err;
Expand Down

0 comments on commit 2284ee4

Please sign in to comment.