artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39b58d4
)
ensure log stuff happens, even without context
author
espie
<espie@openbsd.org>
Sun, 27 Jul 2014 22:17:33 +0000
(22:17 +0000)
committer
espie
<espie@openbsd.org>
Sun, 27 Jul 2014 22:17:33 +0000
(22:17 +0000)
usr.sbin/pkg_add/OpenBSD/Log.pm
patch
|
blob
|
history
diff --git
a/usr.sbin/pkg_add/OpenBSD/Log.pm
b/usr.sbin/pkg_add/OpenBSD/Log.pm
index
2b8d613
..
1610267
100644
(file)
--- a/
usr.sbin/pkg_add/OpenBSD/Log.pm
+++ b/
usr.sbin/pkg_add/OpenBSD/Log.pm
@@
-1,5
+1,5
@@
# ex:ts=8 sw=4:
-# $OpenBSD: Log.pm,v 1.
8 2014/03/18 18:53:29
espie Exp $
+# $OpenBSD: Log.pm,v 1.
9 2014/07/27 22:17:33
espie Exp $
#
# Copyright (c) 2007-2010 Marc Espie <espie@openbsd.org>
#
@@
-36,12
+36,14
@@
sub set_context
sub messages
{
my $self = shift;
+ $self->{context} //= "???";
return $self->{messages}{$self->{context}} //= [];
}
sub errmessages
{
my $self = shift;
+ $self->{context} //= "???";
return $self->{errmessages}{$self->{context}} //= [];
}