Skip to content

Commit

Permalink
Merge pull request #254 from vitalygashkov/next
Browse files Browse the repository at this point in the history
Improved log naming, added `downgrade` command
  • Loading branch information
vitalygashkov authored Nov 29, 2024
2 parents 828a98b + 5e7ff51 commit 7f6ca60
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/cli
Submodule cli updated from 9fcacc to 836134
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/lib/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { getCurrentDateTimeString, isExecutable } from './utils';
const MAX_LOGS_COUNT = 50;
const CURRENT_DATETIME = getCurrentDateTimeString();
const LOG_DIR = BaseDirectory.AppLog;
const LOG_PATH = join(LOG_DIR, `streamyx_${CURRENT_DATETIME}_${pid}.log`);
const LOG_PATH = join(LOG_DIR, `${CURRENT_DATETIME}_${pid}.log`);

// Enable debug mode if needed
if (
Expand Down
2 changes: 1 addition & 1 deletion packages/core/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const timeFormatter = new Intl.DateTimeFormat('en-US', {
export const getCurrentDateTimeString = () => {
const date = new Date();
const formatted = dateTimeFormatter.format(date);
return formatted.replace('/', '-').replace(', ', '_').replaceAll(':', '_');
return formatted.replaceAll('/', '-').replace(', ', '_').replaceAll(':', '-');
};

export const getCurrentTimeString = () => {
Expand Down

0 comments on commit 7f6ca60

Please sign in to comment.