angler-fishThe Vulnerability History Project

core,network: major per-object logging rework

      This changes log_unit_info() (and friends) to take a real Unit* object
insted of just a unit name as parameter. The call will now prefix all
logged messages with the unit name, thus allowing the unit name to be
dropped from the various passed romat strings, simplifying invocations
drastically, and unifying log output across messages. Also, UNIT= vs.
USER_UNIT= is now derived from the Manager object attached to the Unit
object, instead of getpid(). This has the benefit of correcting the
field for --test runs.

Also contains a couple of other logging improvements:

- Drops a couple of strerror() invocations in favour of using %m.

- Not only .mount units now warn if a symlinks exist for the mount
  point already, .automount units do that too, now.

- A few invocations of log_struct() that didn't actually pass any
  additional structured data have been replaced by simpler invocations
  of log_unit_info() and friends.

- For structured data a n
    
commit f2341e0a87cab1558c84c933956e9181d5fb6c52
+20 -12
+57 -45
+36 -30
+4 -4
+12 -9
+57 -57
+5 -5
+33 -34
+1 -1
+9 -23
-3
+98 -73
+1 -2
+23 -13
+10 -9
+122 -124
+3 -3
+10 -6
+94 -82
+35 -27
+23 -16
+35 -31
+89 -57
+17 -21
+57 -31
+19 -10
+49 -38
+9 -14
+5 -8
+2 -17
+1
+20 -9
expand_less