Assorted apparatus and methods optimize the detection of gas entrapped in drilling fluid. A mudlogging injection system can have a processor that autonomously injects sample gas into a gas chromatograph with near atmospheric pressures to optimize sample gas testing time and accuracy. The processor can autonomously detect errors, such as gas chromatograph detector drift, and conduct chromatograph adjustments to ensure accurate detection of different constituent gases entrapped in the drilling fluid.