aboutsummaryrefslogtreecommitdiffstats
path: root/imapsync
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-07-24 01:27:43 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-07-24 01:27:53 +0200
commita8445f6da256a09bac321a0bd2c23e3b8424caf4 (patch)
tree04c80cfd870b2a1672b2882d02bf5b062cfece82 /imapsync
parentdf8316d4d198d518db6b03600273efd5f9948c4a (diff)
Don't prefix logs by a timestamp, that's a syslog thing.
Diffstat (limited to 'imapsync')
-rwxr-xr-ximapsync5
1 files changed, 1 insertions, 4 deletions
diff --git a/imapsync b/imapsync
index a759250..f80106d 100755
--- a/imapsync
+++ b/imapsync
@@ -28,7 +28,6 @@ use Getopt::Long qw/:config posix_default no_ignore_case gnu_compat
use List::Util 'first';
use DBI ();
-use POSIX 'strftime';
use lib 'lib';
use Net::IMAP::Sync qw/read_config compact_set $IMAP_text $IMAP_cond/;
@@ -169,9 +168,7 @@ $DBH->do('PRAGMA foreign_keys = ON');
sub msg($@) {
my $name = shift;
return unless @_;
- my $prefix = strftime "%b %e %H:%M:%S", localtime;
- $prefix .= " $name" if defined $name;
- $prefix .= ': ';
+ my $prefix = defined $name ? "$name: " : '';
print STDERR $prefix, @_, "\n";
}