Skip to content
Snippets Groups Projects
Commit d73d65c3 authored by Carmelo Pellegrino's avatar Carmelo Pellegrino
Browse files

log the time on the same line of the message

parent ef32fc9b
No related branches found
No related tags found
No related merge requests found
......@@ -73,10 +73,9 @@ function dm_driver() {
}
function log() {
[ ! -d ~/.km3_private ] && mkdir -p ~/.km3_private
local logfile="~/.km3_private/pc.log"
date >>${logfile}
echo ${*} >>${logfile}
[ ! -d ${HOME}/.km3_private ] && mkdir -p ${HOME}/.km3_private
local logfile="${HOME}/.km3_private/pc.log"
echo "$(date): ${*}" >>${logfile}
}
function nowUTC() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment