Opened 15 years ago

Closed 15 years ago

#24040 closed defect (fixed)

Logging: Errors ending up in wrong log file with livecheck

Reported by: raimue (Rainer Müller) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.9.0
Component: base Version: 1.8.99
Keywords: logging log Cc:
Port:

Description

I experimented a bit with a new livecheck.type and made some mistakes while writing this.

The following happened when I used livecheck with a faulty Portfile for stellarium in place:

$ port -v livecheck maintainer:raimue
allegro seems to be up to date
...
qbzr seems to be up to date
Error: Target org.macports.livecheck returned: The defaults could not be loaded from '/Users/raim/src/macports/trunk/dports/_resources/port1.0/livecheck/foo.tcl'.
Warning: the following items did not execute (for stellarium): org.macports.livecheck
Log for stellarium is at: /opt/local/var/macports/logs/_Users_raim_src_macports_trunk_dports_devel_allegro/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

The report mentions a log file for allegro which does not contain anything related to this livecheck. It was produced at an previous build attempt.

Interesting is that this log output does not appear if I run livecheck directly on the faulty stellarium port:

$ port -v livecheck stellarium
Error: Target org.macports.livecheck returned: The defaults could not be loaded from '/Users/raim/src/macports/trunk/dports/_resources/port1.0/livecheck/foo.tcl'.
Warning: the following items did not execute (for stellarium): org.macports.livecheck
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Change History (2)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

I can't find a way to reproduce this, do you have a reduced testcase?

comment:2 Changed 15 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Fixed in r66783.

As I was running without root privileges the log file could not be opened but ::debuglogname was updated anyway. Now it checks that logging is enabled before printing the message.

Note: See TracTickets for help on using tickets.