I'm using ubic to manage by starman daemon and cannot seem to get my app to log to a file. I am trying to log to /var/log/internal-api.log and have set the permissions to 777 for troubleshooting purposes. Manual testing on the command line verifies this odd behavior: plackup -E production -s Starman --workers 5 -p 5000 -a bin/app.pl An 'strace -fv' of the above command results in the following snippet: stat64("/var/log", {st_dev=makedev(252, 0), st_ino=3670214, st_mode=S_IFDIR|0755, st_nlink=14, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=4096, st_atime=2011/11/03-09:41:41, st_mtime=2011/11/03-09:38:12, st_ctime=2011/11/03-09:38:12}) = 0 open("/var/log/internal-api.log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = 5 _llseek(5, 0, [0], SEEK_END) = 0 ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfdcba68) = -1 ENOTTY (Inappropriate ioctl for device) _llseek(5, 0, [0], SEEK_CUR) = 0 *Note the Inappropriate ioctl for device Following is my production.yml file. # only log warning and error messsages log: 'warning' # log message to a file in logs/ logger: 'file' log_path: '/var/log' log_file: 'internal-api.log' # don't consider warnings critical warnings: 0 # hide errors show_errors: 0 # cache route resolution for maximum performance route_cache: 1 Any ideas? Thanks, Matt
Try using the Ubic logging output. You output to the screen, Ubic logs it. Perhaps the Ubic people could help more. I've personally got too many things to go over this. Sorry. On Thu, Nov 3, 2011 at 7:21 PM, Matt Williams <matt@crowdtilt.com> wrote:
I'm using ubic to manage by starman daemon and cannot seem to get my app to log to a file. I am trying to log to /var/log/internal-api.log and have set the permissions to 777 for troubleshooting purposes.
Manual testing on the command line verifies this odd behavior: plackup -E production -s Starman --workers 5 -p 5000 -a bin/app.pl
An 'strace -fv' of the above command results in the following snippet:
stat64("/var/log", {st_dev=makedev(252, 0), st_ino=3670214, st_mode=S_IFDIR|0755, st_nlink=14, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=4096, st_atime=2011/11/03-09:41:41, st_mtime=2011/11/03-09:38:12, st_ctime=2011/11/03-09:38:12}) = 0 open("/var/log/internal-api.log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = 5 _llseek(5, 0, [0], SEEK_END) = 0 ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfdcba68) = -1 ENOTTY (Inappropriate ioctl for device) _llseek(5, 0, [0], SEEK_CUR) = 0
*Note the Inappropriate ioctl for device
Following is my production.yml file.
# only log warning and error messsages log: 'warning' # log message to a file in logs/ logger: 'file' log_path: '/var/log' log_file: 'internal-api.log' # don't consider warnings critical warnings: 0 # hide errors show_errors: 0 # cache route resolution for maximum performance route_cache: 1
Any ideas?
Thanks, Matt
_______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
participants (2)
-
Matt Williams -
sawyer x