Skip to content

Commit

Permalink
refactor: always console.error without needing dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed May 4, 2024
1 parent d1e861c commit 0839d66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ function callFunction(type?: boolean):string {
export function logs(args: LogsParameters, ...messages: unknown[]) {
const settings = args.settings as GitHubPublisherSettings;
args.logs = true;
if (args.e) {
notif(args, ...messages);
return;
}
if (settings.plugin?.dev) {
notif(args, ...messages);
}
Expand Down

0 comments on commit 0839d66

Please sign in to comment.