Skip to content

Commit

Permalink
fix: --iso-8601=ns unsupported in macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
andersonbosa committed Jan 3, 2025
1 parent 80855a8 commit 062284c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moshell.sh/core/logger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function _moshell::log {
echo '[DATE] [PID] [TYPE] [MESSAGE]' >>$logpath
fi

echo "[$(date --iso-8601=ns)] [$$] [$logtype] $message" >>"$logpath"
echo "[$(date)] [$$] [$logtype] $message" >>"$logpath"
fi
}

Expand Down

0 comments on commit 062284c

Please sign in to comment.