This looks like a bug to me, maybe the simplest incarnation would be
In[10]:= Quantity[Log[x Quantity[1, "Liters"]], "Kilometers"] / Quantity[1, "Meters"]
Out[10]= 1000 (-3 Log[2] - 3 Log[5] + Log[x])
Where did the "Liters" go? You should report bugs here.
On a side note, you should try to use unit standard names when possible. Every time you type
In[11]:= Quantity[x, "volt"] // InputForm
Out[11]//InputForm= Quantity[x, "Volts"]
the system has to interpret the string "volt" to find the canonical unit "Volts"
. If you just use "Volts"
from the start then computations will be faster, even if only a small amount.