The following change to the FitBit launch daemon should send the output to its own file:
--- com.fitbit.fitbitd.plist.orig 2012-05-19 09:24:54.000000000 +0100 +++ com.fitbit.fitbitd.plist 2012-05-19 09:06:51.000000000 +0100 @@ -44,5 +44,9 @@ <false/> <key>Disabled</key> <false/> + <key>StandardErrorPath</key> + <string>/var/log/fitbitd.log</string> + <key>StandardOutPath</key> + <string>/var/log/fitbitd.log</string> </dict> </plist>Don't forget to create the file ahead of time and give it the correct permissions.
$ sudo touch /var/log/fitbitd.log && sudo chown nobody: /var/log/fitbitd.logRestart fitbitd:
$ cd /Library/LauchDaemons $ sudo launchctl unload com.fitbit.fitbitd.plist $ sudo launchctl load com.fitbit.fitbitd.plist
Thanks for this - really hard to debug other problems with fitbitd blathering on all the time.
ReplyDeleteThat log is going to get big, fast. I recommend adding a line to /etc/newsyslog.conf to roll it over, just like system.log:
/var/log/fitbitd.log 640 7 * @T00 J